MipResources::YellowPages Class Reference
[Communication module]

vector of YellowPage More...

#include <YellowPages.h>

List of all members.

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)


Detailed Description

vector of YellowPage

Author:
Paolo Stegagno

Constructor & Destructor Documentation

MipResources::YellowPages::YellowPages ( ScenarioType  scen,
int  id 
)

constructor

Parameters:
scen scenario (Khepera, Player, Webots, ...)
id id of the robot


Member Function Documentation

int MipResources::YellowPages::getCommParams ( int *  broadPort,
int *  listPort,
string *  subnet 
)

get UDP comunication parameters for broadcasting and listening from a file

Parameters:
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]


The documentation for this class was generated from the following files:

Generated on Mon Feb 20 07:01:12 2017 for MIP by  doxygen 1.5.6