reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
HEPSipMessageLoggingHandler.hxx
Go to the documentation of this file.
1#if !defined(RESIP_HEPSIPMESSAGELOGGINGHANDLER_HXX)
2#define RESIP_HEPSIPMESSAGELOGGINGHANDLER_HXX
3
7#include "rutil/Data.hxx"
8#include "rutil/Socket.hxx"
10
11#include <memory>
12
13namespace resip
14{
15
17{
18 public:
19 explicit HEPSipMessageLoggingHandler(std::shared_ptr<HepAgent> agent);
20 virtual void outboundMessage(const Tuple &source, const Tuple &destination, const SipMessage &msg);
21 virtual void outboundRetransmit(const Tuple &source, const Tuple &destination, const SendData &data);
22 virtual void inboundMessage(const Tuple& source, const Tuple& destination, const SipMessage &msg);
23 protected:
24 virtual void sendToHOMER(const Tuple& source, const Tuple& destination, const SipMessage &msg);
25 private:
26 std::shared_ptr<HepAgent> mHepAgent;
27};
28
29
30}
31
32#endif
33
34
35/* ====================================================================
36 *
37 * Copyright 2016 Daniel Pocock http://danielpocock.com All rights reserved.
38 *
39 * Redistribution and use in source and binary forms, with or without
40 * modification, are permitted provided that the following conditions
41 * are met:
42 *
43 * 1. Redistributions of source code must retain the above copyright
44 * notice, this list of conditions and the following disclaimer.
45 *
46 * 2. Redistributions in binary form must reproduce the above copyright
47 * notice, this list of conditions and the following disclaimer in
48 * the documentation and/or other materials provided with the
49 * distribution.
50 *
51 * 3. Neither the name of the author(s) nor the names of any contributors
52 * may be used to endorse or promote products derived from this software
53 * without specific prior written permission.
54 *
55 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
56 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
57 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
58 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
59 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
60 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
61 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
62 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
63 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
64 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
65 * SUCH DAMAGE.
66 *
67 * ====================================================================
68 *
69 *
70 */
Handles cross-platform sockets compatibility.
virtual void outboundRetransmit(const Tuple &source, const Tuple &destination, const SendData &data)
virtual void sendToHOMER(const Tuple &source, const Tuple &destination, const SipMessage &msg)
virtual void inboundMessage(const Tuple &source, const Tuple &destination, const SipMessage &msg)
virtual void outboundMessage(const Tuple &source, const Tuple &destination, const SipMessage &msg)
Represents a SIP message.
Represents a network address.
Definition Tuple.hxx:59
dcm! – add UnusedChecking(_enum) below;