![]() |
PhoenixSocket
1.0.0
Library which integrates socket unix use in Phoenix
|
#include <data_size.h>
#include <data_file.h>
#include <data_message.h>
Go to the source code of this file.
Typedefs | |
typedef std::vector< DataStreamMsg > | PVecMockMessage |
Vector of messages. | |
Functions | |
template<typename T> | |
bool | phoenix_addMockMessage (PVecMockMessage &vecOutput, const T &data) |
Add Data in a sequence of mock messages. | |
bool | phoenix_closeMockSocket (const PVecMockMessage &vecOutput, const std::string &outputFileName) |
Close a mock socket. | |
bool | phoenix_createMockSocket (PVecMockMessage &vecInput, std::string &inputFileName, std::string &outputFileName, const std::string &address, size_t port) |
Create a mock socket. | |
bool | phoenix_readMockSocket (PVecMockMessage &vecInput, const std::string &address, size_t port) |
Read a mock socket. | |
typedef std::vector<DataStreamMsg > PVecMockMessage |
Vector of messages.
Definition at line 15 of file phoenix_mock_socket.h.
bool phoenix_addMockMessage | ( | PVecMockMessage & | vecOutput, |
const T & | data ) |
Add Data in a sequence of mock messages.
[out] | vecOutput | : vector of messages (sequence of message) |
data | : data to be added into the message |
Definition at line 23 of file phoenix_mock_socket.h.
bool phoenix_closeMockSocket | ( | const PVecMockMessage & | vecOutput, |
const std::string & | outputFileName ) |
Close a mock socket.
vecOutput | : vector of output messages to be saved |
outputFileName | : name of the output message file to be written |
Definition at line 53 of file phoenix_mock_socket.cpp.
bool phoenix_createMockSocket | ( | PVecMockMessage & | vecInput, |
std::string & | inputFileName, | ||
std::string & | outputFileName, | ||
const std::string & | address, | ||
size_t | port ) |
Create a mock socket.
[out] | vecInput | : vector of input message to be read |
[out] | inputFileName | : name of the input message file to be loaded |
[out] | outputFileName | : name of the output message file to be written |
address | : host address | |
port | : port to be used |
Definition at line 18 of file phoenix_mock_socket.cpp.
bool phoenix_readMockSocket | ( | PVecMockMessage & | vecInput, |
const std::string & | address, | ||
size_t | port ) |
Read a mock socket.
[out] | vecInput | : vector of input message to be read |
address | : host address | |
port | : port to be used |
Definition at line 38 of file phoenix_mock_socket.cpp.