muscle::Communicator Class Reference
#include <communicator.hpp>
Inheritance diagram for muscle::Communicator:
![](classmuscle_1_1_communicator.png)
Public Member Functions | |
Communicator () | |
virtual | ~Communicator () |
virtual int | execute_protocol (muscle_protocol_t opcode, std::string *identifier, muscle_datatype_t type, const void *msg, size_t msg_len, void *result, size_t *result_len) |
std::string | retrieve_string (muscle_protocol_t opcode, std::string *name) |
virtual void | free_data (void *ptr, muscle_datatype_t type) |
Protected Member Functions | |
void | connect_socket (const char *hostname, int port) |
Protected Attributes | |
int | sockfd |
Constructor & Destructor Documentation
muscle::Communicator::Communicator | ( | ) | [inline] |
virtual muscle::Communicator::~Communicator | ( | ) | [inline, virtual] |
Member Function Documentation
virtual int muscle::Communicator::execute_protocol | ( | muscle_protocol_t | opcode, | |
std::string * | identifier, | |||
muscle_datatype_t | type, | |||
const void * | msg, | |||
size_t | msg_len, | |||
void * | result, | |||
size_t * | result_len | |||
) | [inline, virtual] |
Execute a MUSCLE protocol. Identifier is an ID of the name for which to communicate, the msg is the message to MUSCLE and the result the result from MUSCLE.
Reimplemented in muscle::XdrCommunicator.
std::string muscle::Communicator::retrieve_string | ( | muscle_protocol_t | opcode, | |
std::string * | name | |||
) |
Retrieves a string from MUSCLE with a certain protocol. If no name is needed for the string, it may be NULL.
virtual void muscle::Communicator::free_data | ( | void * | ptr, | |
muscle_datatype_t | type | |||
) | [inline, virtual] |
Free data that MUSCLE allocated
Reimplemented in muscle::XdrCommunicator.
void muscle::Communicator::connect_socket | ( | const char * | hostname, | |
int | port | |||
) | [protected] |
Field Documentation
int muscle::Communicator::sockfd [protected] |
Generated on Thu Oct 18 14:28:28 2012 for Muscle C/C++ API by
![doxygen](doxygen.png)