Kea
1.9.9-git
|
Mock socket session forwarder. More...
#include <mock_socketsession.h>
Public Member Functions | |
MockSocketSessionForwarder () | |
virtual void | close () |
virtual void | connectToReceiver () |
void | disableClose () |
void | disableConnect () |
void | disablePush () |
void | enableConnect () |
void | enablePush () |
const std::vector< uint8_t > & | getPushedData () const |
int | getPushedFamily () const |
const struct sockaddr & | getPushedLocalend () const |
int | getPushedProtocol () const |
const struct sockaddr & | getPushedRemoteend () const |
int | getPushedSock () const |
int | getPushedType () const |
bool | isConnected () const |
virtual void | push (int sock, int family, int type, int protocol, const struct sockaddr &local_end, const struct sockaddr &remote_end, const void *data, size_t data_len) |
Public Member Functions inherited from isc::util::io::BaseSocketSessionForwarder | |
virtual | ~BaseSocketSessionForwarder () |
Additional Inherited Members | |
Protected Member Functions inherited from isc::util::io::BaseSocketSessionForwarder | |
BaseSocketSessionForwarder () | |
Mock socket session forwarder.
It emulates the behavior of SocketSessionForwarder without involving network communication, and allowing the tester to customize the behavior and to examine forwarded data afterwards.
Definition at line 31 of file mock_socketsession.h.
|
inline |
Definition at line 35 of file mock_socketsession.h.
|
inlinevirtual |
Implements isc::util::io::BaseSocketSessionForwarder.
Definition at line 55 of file mock_socketsession.h.
References isc_throw.
|
inlinevirtual |
Implements isc::util::io::BaseSocketSessionForwarder.
Definition at line 45 of file mock_socketsession.h.
References isc_throw.
|
inline |
Definition at line 104 of file mock_socketsession.h.
|
inline |
Definition at line 102 of file mock_socketsession.h.
|
inline |
Definition at line 105 of file mock_socketsession.h.
|
inline |
Definition at line 103 of file mock_socketsession.h.
|
inline |
Definition at line 106 of file mock_socketsession.h.
|
inline |
Definition at line 126 of file mock_socketsession.h.
|
inline |
Definition at line 117 of file mock_socketsession.h.
|
inline |
Definition at line 120 of file mock_socketsession.h.
References isc::util::io::internal::convertSockAddr().
|
inline |
Definition at line 119 of file mock_socketsession.h.
|
inline |
Definition at line 123 of file mock_socketsession.h.
References isc::util::io::internal::convertSockAddr().
|
inline |
Definition at line 116 of file mock_socketsession.h.
|
inline |
Definition at line 118 of file mock_socketsession.h.
|
inline |
Definition at line 98 of file mock_socketsession.h.
|
inlinevirtual |
Implements isc::util::io::BaseSocketSessionForwarder.
Definition at line 66 of file mock_socketsession.h.
References isc::util::io::internal::getSALength(), and isc_throw.