#include <socketUDP.h>

Public Member Functions | |
| ListenerUDP (const int port) | |
| non-wrapper constructor | |
| ListenerUDP (const int port, string &my_host) | |
| non-wrapper constructor | |
| ListenerUDP (const int bp, const int lp, string &net_addr) | |
| wrapper constructor | |
| ~ListenerUDP () | |
| destructor | |
| int | receive (string &buffe, string &senderAddr) |
| receive a string and gives the sender address (blocking function) | |
| void | receive (char *buf, string &senderAddr, int numbytes) |
| receive numbytes char and gives the sender address (blocking function) | |
| int | receive (string &buffe) |
| receive a string | |
| int | lSelect () |
| check if there are messages waiting to be received | |
| string | getObjectName () const |
| Method that gives the name of the class as it will be displayed by the tracer. | |
| ListenerUDP::ListenerUDP | ( | const int | port | ) |
non-wrapper constructor
| ListenerUDP::ListenerUDP | ( | const int | port, | |
| string & | my_host | |||
| ) |
non-wrapper constructor
| ListenerUDP::ListenerUDP | ( | const int | bp, | |
| const int | lp, | |||
| string & | net_addr | |||
| ) |
wrapper constructor
| ListenerUDP::~ListenerUDP | ( | ) |
destructor
| int ListenerUDP::receive | ( | string & | buffe, | |
| string & | senderAddr | |||
| ) |
receive a string and gives the sender address (blocking function)
| void ListenerUDP::receive | ( | char * | buf, | |
| string & | senderAddr, | |||
| int | numbytes | |||
| ) |
receive numbytes char and gives the sender address (blocking function)
| int ListenerUDP::receive | ( | string & | buffe | ) |
receive a string
| int ListenerUDP::lSelect | ( | ) |
check if there are messages waiting to be received
| string ListenerUDP::getObjectName | ( | ) | const [inline, virtual] |
Method that gives the name of the class as it will be displayed by the tracer.
Reimplemented from SocketUDP.
1.5.6