#include <YellowPages.h>
Public Member Functions | |
YellowPages (ScenarioType scen, int id) | |
int | getCommParams (int *broadPort, int *listPort, string *subnet) |
int | getAddrPort () |
get Address and Port of all comunications from a file | |
string | print () |
print function | |
int | find (int a, IPProtocol p) |
find a pair name and protocol in the vector of YellowPage | |
void | set (int a, IPProtocol p) |
MipResources::YellowPages::YellowPages | ( | ScenarioType | scen, | |
int | id | |||
) |
constructor
scen | scenario (Khepera, Player, Webots, ...) | |
id | id of the robot |
int MipResources::YellowPages::getCommParams | ( | int * | broadPort, | |
int * | listPort, | |||
string * | subnet | |||
) |
get UDP comunication parameters for broadcasting and listening from a file
broadPort | pointer to the int in which the function writes the Broadcaster port | |
listPort | pointer to the int in which the function writes the Listener port | |
subnet | pointer to the string in which the function writes the subnet address |
int MipResources::YellowPages::getAddrPort | ( | ) |
get Address and Port of all comunications from a file
string MipResources::YellowPages::print | ( | ) | [inline] |
print function
int MipResources::YellowPages::find | ( | int | a, | |
IPProtocol | p | |||
) |
find a pair name and protocol in the vector of YellowPage
void MipResources::YellowPages::set | ( | int | a, | |
IPProtocol | p | |||
) | [inline] |