Belle II Software development
|
Public Member Functions | |
UDPSocket (unsigned int port) | |
UDPSocket (unsigned int port, const std::string &hostname, bool boardcast=false) | |
UDPSocket (unsigned int port, unsigned int addr, bool boardcast=false) | |
int | bind () |
int | bind (unsigned int port, const std::string &hostname="", bool broadcast=true) |
const std::string | getHostName () const |
unsigned int | getPort () const |
unsigned int | getAddress () const |
const std::string | getRemoteHostName () const |
unsigned int | getRemotePort () const |
unsigned int | getRemoteAddress () const |
virtual size_t | write (const void *v, size_t count) |
virtual size_t | read (void *v, size_t count) |
int | get_fd () const |
bool | select (int sec=-1, int usec=-1) |
bool | select2 (int sec=-1, int usec=-1) |
bool | close () |
Protected Attributes | |
int | m_fd |
Static Private Member Functions | |
static unsigned int | findSubnet (unsigned int addr) |
Private Attributes | |
struct sockaddr_in | m_addr |
struct sockaddr_in | m_remote_addr |
Friends | |
class | TCPServerSocket |
Definition at line 23 of file UDPSocket.h.
UDPSocket | ( | ) |
Definition at line 44 of file UDPSocket.cc.
UDPSocket | ( | unsigned int | port | ) |
Definition at line 50 of file UDPSocket.cc.
UDPSocket | ( | unsigned int | port, |
const std::string & | hostname, | ||
bool | boardcast = false |
||
) |
Definition at line 60 of file UDPSocket.cc.
UDPSocket | ( | unsigned int | port, |
unsigned int | addr, | ||
bool | boardcast = false |
||
) |
Definition at line 94 of file UDPSocket.cc.
|
inlinevirtual |
Definition at line 36 of file UDPSocket.h.
int bind | ( | ) |
Definition at line 145 of file UDPSocket.cc.
int bind | ( | unsigned int | port, |
const std::string & | hostname = "" , |
||
bool | broadcast = true |
||
) |
Definition at line 115 of file UDPSocket.cc.
|
inherited |
Definition at line 90 of file FileDescriptor.cc.
|
staticprivate |
Definition at line 26 of file UDPSocket.cc.
|
inherited |
Definition at line 33 of file FileDescriptor.cc.
unsigned int getAddress | ( | ) | const |
Definition at line 207 of file UDPSocket.cc.
const std::string getHostName | ( | ) | const |
Definition at line 202 of file UDPSocket.cc.
unsigned int getPort | ( | ) | const |
Definition at line 212 of file UDPSocket.cc.
unsigned int getRemoteAddress | ( | ) | const |
Definition at line 222 of file UDPSocket.cc.
const std::string getRemoteHostName | ( | ) | const |
Definition at line 217 of file UDPSocket.cc.
unsigned int getRemotePort | ( | ) | const |
Definition at line 227 of file UDPSocket.cc.
|
virtual |
Definition at line 180 of file UDPSocket.cc.
|
inherited |
Definition at line 38 of file FileDescriptor.cc.
|
inherited |
Definition at line 64 of file FileDescriptor.cc.
|
virtual |
Definition at line 155 of file UDPSocket.cc.
|
friend |
Definition at line 25 of file UDPSocket.h.
|
private |
Definition at line 55 of file UDPSocket.h.
|
protectedinherited |
Definition at line 31 of file FileDescriptor.h.
|
private |
Definition at line 56 of file UDPSocket.h.