Belle II Software  release-08-01-10
UDPSocket Class Reference
Inheritance diagram for UDPSocket:
Collaboration diagram for UDPSocket:

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
 

Detailed Description

Definition at line 23 of file UDPSocket.h.


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