#include <IPCommModule.h>

Public Member Functions | |
| IPCommModule (int argc, const char *argv[]) | |
| constructor | |
| ~IPCommModule () | |
| constructor | |
| ResourcePlate | getPlate () const |
| getPlate | |
| void | getIPAddr (int robot, IPProtocol proto, string &IPAddr, int &port) |
| retrieves an IP address from the robot ID | |
| SenderUDP * | getSocket (int robot) |
| provides a pointer to the sender object | |
| void | IPSendPacketString (string &packetString, SenderUDP *socket) |
| physically send a packetString via IP socket | |
| void | IPSendPacketString (string &packetString) |
| physically send a packetString via IP broadcasting | |
| void | IPSendPacketString (CommStoredPacketString &storedPacketString) |
| process a storedPacketString for IP sending | |
| void | IPReceive () |
| physically receive packetStrings via IP (uses storePacketString) (left public for thread) | |
| void | IPSend () |
| physically send all stored packetStrings (left public for thread) | |
| bool | sendPacketString (string &packetString, CommNode recipient) |
| stores the couple packetString-recipient in a buffer (virtual implementation) | |
Protected Attributes | |
| Thread | _IPThread |
| MipResources::IPCommModule::IPCommModule | ( | int | argc, | |
| const char * | argv[] | |||
| ) |
constructor
| MipResources::IPCommModule::~IPCommModule | ( | ) | [inline] |
constructor
destructor
| ResourcePlate MipResources::IPCommModule::getPlate | ( | ) | const [inline, virtual] |
| void MipResources::IPCommModule::getIPAddr | ( | int | robot, | |
| IPProtocol | proto, | |||
| string & | IPAddr, | |||
| int & | port | |||
| ) |
retrieves an IP address from the robot ID
| [in] | robot | robot id |
| [in] | proto | internet protocol |
| [out] | IPAddr | IP address |
| [out] | port | listening port |
| SenderUDP * MipResources::IPCommModule::getSocket | ( | int | robot | ) |
| void MipResources::IPCommModule::IPSendPacketString | ( | string & | packetString, | |
| SenderUDP * | socket | |||
| ) |
physically send a packetString via IP socket
| packetString | string to be sent | |
| socket | pointer to the sender object |
| void MipResources::IPCommModule::IPSendPacketString | ( | string & | packetString | ) |
physically send a packetString via IP broadcasting
| packetString | string to be sent |
| void MipResources::IPCommModule::IPSendPacketString | ( | CommStoredPacketString & | storedPacketString | ) |
process a storedPacketString for IP sending
| storedPacketString | couple packetString-recipient to process |
| void MipResources::IPCommModule::IPReceive | ( | ) |
physically receive packetStrings via IP (uses storePacketString) (left public for thread)
| void MipResources::IPCommModule::IPSend | ( | ) |
physically send all stored packetStrings (left public for thread)
| bool MipResources::IPCommModule::sendPacketString | ( | string & | packetString, | |
| CommNode | recipient | |||
| ) | [virtual] |
stores the couple packetString-recipient in a buffer (virtual implementation)
| packetString | string to be sent | |
| recipient | recipient of the packet |
Implements MipResources::CommModule.
Thread MipResources::IPCommModule::_IPThread [protected] |
1.5.6