![]() |
|
IpbusMock
1.0.0
Library which integrates IPbus use in Phoenix
|
PhoenixSocket API bridge to IpBus backend. More...
#include <PIpBusBackend.h>
Collaboration diagram for PIpBusSocket:Public Types | |
| typedef UaMessage | Message |
| Define the type of message used by the PAbstractSocketManager. | |
| typedef PIpBusParam | Param |
| Define the type of extra parameters which can be used to create a Socket. | |
Public Member Functions | |
| void | close () |
| Close the socket. | |
| bool | createClientSocket (const Param &extraParam) |
| Create a client socket. | |
| bool | createServerSocket (const Param &extraParam) |
| Create a server socket. | |
| bool | isConnected () const |
| PIpBusSocket () | |
| Default constructor of PIpBusSocket. | |
| template<typename T> | |
| PRecvStatus::PRecvStatus | recvData (T &data, PRecvFlag::PRecvFlag flag=PRecvFlag::BLOCK) |
| Recieved data with the socket. | |
| PRecvStatus::PRecvStatus | recvMsg (Message &msg, PRecvFlag::PRecvFlag flag=PRecvFlag::BLOCK) |
| Receive a message from the given socket. | |
| template<typename T> | |
| PSendStatus::PSendStatus | sendData (const T &data, PSendFlag::PSendFlag flag=PSendFlag::BLOCK) |
| Send data with the socket. | |
| PSendStatus::PSendStatus | sendMsg (Message &msg, PSendFlag::PSendFlag flag=PSendFlag::BLOCK) |
| virtual | ~PIpBusSocket () |
| Destructor of PIpBusSocket. | |
Private Attributes | |
| IpBusImpl * | p_uaSocket |
| UA socket. | |
PhoenixSocket API bridge to IpBus backend.
Definition at line 28 of file PIpBusBackend.h.
| typedef UaMessage PIpBusSocket::Message |
Define the type of message used by the PAbstractSocketManager.
Definition at line 31 of file PIpBusBackend.h.
| typedef PIpBusParam PIpBusSocket::Param |
Define the type of extra parameters which can be used to create a Socket.
Definition at line 33 of file PIpBusBackend.h.
| PIpBusSocket::PIpBusSocket | ( | ) |
Default constructor of PIpBusSocket.
Definition at line 11 of file PIpBusBackend.cpp.
References p_uaSocket.
|
virtual |
Destructor of PIpBusSocket.
Definition at line 18 of file PIpBusBackend.cpp.
References close().
Here is the call graph for this function:| void PIpBusSocket::close | ( | ) |
Close the socket.
Definition at line 47 of file PIpBusBackend.cpp.
References p_uaSocket.
Referenced by ~PIpBusSocket().
Here is the caller graph for this function:| bool PIpBusSocket::createClientSocket | ( | const Param & | extraParam | ) |
Create a client socket.
| [out] | extraParam | : extra customisable parameters for the creation of the socket |
Definition at line 28 of file PIpBusBackend.cpp.
References PIpBusParam::connectionFilePath, PIpBusParam::connectionId, p_uaSocket, and IpBusImpl::pipbus_createSocket().
Referenced by PIpBusBackend::createClientSocket(), and createServerSocket().
Here is the call graph for this function:
Here is the caller graph for this function:| bool PIpBusSocket::createServerSocket | ( | const Param & | extraParam | ) |
Create a server socket.
| [out] | extraParam | : extra customisable parameters for the creation of the socket |
Definition at line 38 of file PIpBusBackend.cpp.
References createClientSocket().
Referenced by PIpBusBackend::createServerSocket().
Here is the call graph for this function:
Here is the caller graph for this function:| bool PIpBusSocket::isConnected | ( | ) | const |
Definition at line 42 of file PIpBusBackend.cpp.
References p_uaSocket.
| PRecvStatus::PRecvStatus PIpBusSocket::recvData | ( | T & | data, |
| PRecvFlag::PRecvFlag | flag = PRecvFlag::BLOCK ) |
Recieved data with the socket.
| [out] | data | : data to be recieved with the socket |
| flag | : recieving flag (BLOCK, NON_BLOCK) |
Definition at line 71 of file PIpBusBackend_impl.h.
References UaMessage::dataStreamMsg, recvMsg(), and UaMessage::size().
Here is the call graph for this function:| PRecvStatus::PRecvStatus PIpBusSocket::recvMsg | ( | PIpBusSocket::Message & | msg, |
| PRecvFlag::PRecvFlag | flag = PRecvFlag::BLOCK ) |
Receive a message from the given socket.
| msg | the message to be received. |
| flag | receive flag (BLOCK, NON_BLOCK) |
Definition at line 190 of file PIpBusBackend.cpp.
References UaMessage::nodeId, p_uaSocket, UaMessage::sizeValue, and UaMessage::value.
Referenced by recvData().
Here is the caller graph for this function:| PSendStatus::PSendStatus PIpBusSocket::sendData | ( | const T & | data, |
| PSendFlag::PSendFlag | flag = PSendFlag::BLOCK ) |
Send data with the socket.
| data | : data to be sent with the socket |
| flag | : sending flag (BLOCK, NON_BLOCK) |
Definition at line 53 of file PIpBusBackend_impl.h.
References UaMessage::dataStreamMsg, and sendMsg().
Here is the call graph for this function:| PSendStatus::PSendStatus PIpBusSocket::sendMsg | ( | PIpBusSocket::Message & | msg, |
| PSendFlag::PSendFlag | flag = PSendFlag::BLOCK ) |
Send a message on the given socket.
| msg | Message to be sent. |
| flag | Flags to be used for sending the message (BLOCK, NON_BLOCK, etc.). |
Definition at line 136 of file PIpBusBackend.cpp.
References UaMessage::nodeId, p_uaSocket, and UaMessage::value.
Referenced by sendData().
Here is the caller graph for this function:
|
private |
UA socket.
Definition at line 54 of file PIpBusBackend.h.
Referenced by close(), createClientSocket(), isConnected(), PIpBusSocket(), recvMsg(), and sendMsg().