Wrapper Class Reference
[Internet protocol sockets]

server UDP that listens on a port waiting for messages and resend messages to other server UDP More...

#include <socketUDP.h>

Inheritance diagram for Wrapper:

SocketUDP MIPObject

List of all members.

Public Member Functions

 Wrapper (int bp, int lp, const char *net)
 ~Wrapper (void)
int findIP (const char *net)
 routine per recuperare l'indirizzo IP della macchina (assolutamente non banale) dato l'indirizzo di rete restituisce l'ip della macchina. es: IP vero 192.168.50.113 findIP(192.168.50.255) ritorna 113
int Init (void)
 in sostanza il bind sulla socket
void run (void)
 loop di esecuzione del wrapper
void start (void)
void stop (void)
string getObjectName () const
 Method that gives the name of the class as it will be displayed by the tracer.

Public Attributes

int broadcast_port
 porta su cui il wrapper ascolta
int local_port
 porta su cui il wrapper inoltra ai vari listener il messaggio ricevuto
const char * subnet
 sottorete
int numero_ip
 non serve
bool active
 flag di terminazione


Detailed Description

server UDP that listens on a port waiting for messages and resend messages to other server UDP

Author:
Paolo Stegagno, Antonio Franchi

Constructor & Destructor Documentation

Wrapper::Wrapper ( int  bp,
int  lp,
const char *  net 
)

Wrapper::~Wrapper ( void   ) 


Member Function Documentation

int Wrapper::findIP ( const char *  net  ) 

routine per recuperare l'indirizzo IP della macchina (assolutamente non banale) dato l'indirizzo di rete restituisce l'ip della macchina. es: IP vero 192.168.50.113 findIP(192.168.50.255) ritorna 113

int Wrapper::Init ( void   ) 

in sostanza il bind sulla socket

void Wrapper::run ( void   ) 

loop di esecuzione del wrapper

void Wrapper::start ( void   ) 

void Wrapper::stop ( void   ) 

string Wrapper::getObjectName (  )  const [inline, virtual]

Method that gives the name of the class as it will be displayed by the tracer.

Returns:
a string, which is the name of the current class
Note:
pure virtual, has to be redefined for each child class

Reimplemented from SocketUDP.


Member Data Documentation

porta su cui il wrapper ascolta

porta su cui il wrapper inoltra ai vari listener il messaggio ricevuto

const char* Wrapper::subnet

sottorete

non serve

flag di terminazione


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

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