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

Public Member Functions

 TCPSocket (const std::string &ip, unsigned short port)
 
void setIP (const std::string &ip)
 
void setPort (unsigned short port)
 
const std::string & getIP () const
 
unsigned short getPort () const
 
int connect ()
 
int connect (const std::string &ip, unsigned short port)
 
void setBufferSize (int size)
 
void print ()
 
const std::string getLocalIP ()
 
int getLocalAddress ()
 
int getLocalPort ()
 
unsigned int getAddress ()
 
virtual size_t write (const void *v, size_t count)
 
virtual size_t read (void *v, size_t count)
 
size_t read_once (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
 

Private Member Functions

 TCPSocket (int fd)
 

Private Attributes

std::string m_ip
 
unsigned short m_port
 

Friends

class TCPServerSocket
 

Detailed Description

Definition at line 21 of file TCPSocket.h.


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