![]() |
|
PhoenixSocket
4.0.1
Library which integrates socket unix use in Phoenix
|
Backend to use Mock library with PAbtractSocket. More...
#include <PEmptyBackend.h>
Public Types | |
| typedef DataStreamMsg | Message |
| Define the type of message used by the PAbstractSocketManager. | |
| typedef PEmptyParam | Param |
| Define the type of extra parameters which can be used to create a Socket used by the PAbstractSocketManager. | |
| typedef PEmptySocket | Socket |
| Define the socket of the backend used by the PAbstractSocketManager. | |
Public Member Functions | |
| bool | createClientSocket (Socket &socket, const PSocketParam &socketParam, const Param &extraParam) |
| Create a client socket. | |
| bool | createServerSocket (Socket &socket, const PSocketParam &socketParam, const Param &extraParam) |
| Create a Server socket. | |
| PEmptyBackend () | |
| Default constructor of PEmptyBackend. | |
Static Public Member Functions | |
| static Param | client () |
| Create param for a client socket. | |
| static void | mockToMsg (Message &msg, DataStreamMsg &mockMsg) |
| Copy mock message data into current backend message. | |
| static const DataStreamIter | msgData (const Message &msg) |
| Get the data of a message. | |
| static DataStreamIter | msgData (Message &msg) |
| Get the data of a message. | |
| static void | msgResize (Message &msg, size_t sizeMsg) |
| Resize a message. | |
| static size_t | msgSize (const Message &msg) |
| Get the size of a message. | |
| static void | msgToMock (DataStreamMsg &mockMsg, const Message &msg) |
| Copy current backend message data into mock message. | |
| static Param | server () |
| Create param for a server socket. | |
Backend to use Mock library with PAbtractSocket.
Definition at line 46 of file PEmptyBackend.h.
| typedef DataStreamMsg PEmptyBackend::Message |
Define the type of message used by the PAbstractSocketManager.
Definition at line 51 of file PEmptyBackend.h.
| typedef PEmptyParam PEmptyBackend::Param |
Define the type of extra parameters which can be used to create a Socket used by the PAbstractSocketManager.
Definition at line 53 of file PEmptyBackend.h.
| typedef PEmptySocket PEmptyBackend::Socket |
Define the socket of the backend used by the PAbstractSocketManager.
Definition at line 49 of file PEmptyBackend.h.
| PEmptyBackend::PEmptyBackend | ( | ) |
|
static |
Create param for a client socket.
Definition at line 88 of file PEmptyBackend.cpp.
Referenced by server().
Here is the caller graph for this function:| bool PEmptyBackend::createClientSocket | ( | PEmptyBackend::Socket & | socket, |
| const PSocketParam & | socketParam, | ||
| const Param & | extraParam ) |
Create a client socket.
| [out] | socket | : socket to be created |
| socketParam | : parameters of the socket (host, port, send/recv timeout) | |
| extraParam | : extra customisable parameters for the creation of the socket (depends on the backend) |
Definition at line 106 of file PEmptyBackend.cpp.
References PEmptySocket::createClientSocket().
Here is the call graph for this function:| bool PEmptyBackend::createServerSocket | ( | PEmptyBackend::Socket & | socket, |
| const PSocketParam & | socketParam, | ||
| const Param & | extraParam ) |
Create a Server socket.
| [out] | socket | : socket to be created |
| socketParam | : parameters of the socket (host, port, send/recv timeout) | |
| extraParam | : extra customisable parameters for the creation of the socket (depends on the backend) |
Definition at line 116 of file PEmptyBackend.cpp.
References PEmptySocket::createServerSocket().
Here is the call graph for this function:
|
static |
Copy mock message data into current backend message.
| [out] | msg | : message of the current backend to be converted |
| mockMsg | : mock message |
Definition at line 166 of file PEmptyBackend.cpp.
References msgData(), and msgResize().
Here is the call graph for this function:
|
static |
Get the data of a message.
| msg | : message to be used |
Definition at line 140 of file PEmptyBackend.cpp.
Referenced by mockToMsg(), and msgToMock().
Here is the caller graph for this function:
|
static |
Get the data of a message.
| msg | : message to be used |
Definition at line 148 of file PEmptyBackend.cpp.
|
static |
Resize a message.
| [out] | msg | : message to be resized |
| sizeMsg | : new size of the message |
Definition at line 124 of file PEmptyBackend.cpp.
Referenced by mockToMsg().
Here is the caller graph for this function:
|
static |
Get the size of a message.
| msg | : message to be used |
Definition at line 132 of file PEmptyBackend.cpp.
Referenced by msgToMock().
Here is the caller graph for this function:
|
static |
Copy current backend message data into mock message.
| [out] | mockMsg | : mock message |
| msg | : message of the current backend to be converted |
Definition at line 156 of file PEmptyBackend.cpp.
References msgData(), and msgSize().
Here is the call graph for this function:
|
static |
Create param for a server socket.
Definition at line 96 of file PEmptyBackend.cpp.
References client().
Here is the call graph for this function: