#include <socketUDP.h>
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 |
Wrapper::Wrapper | ( | int | bp, | |
int | lp, | |||
const char * | net | |||
) |
Wrapper::~Wrapper | ( | void | ) |
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.
Reimplemented from SocketUDP.
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
bool Wrapper::active |
flag di terminazione