Belle II Software development
|
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 |
Definition at line 21 of file TCPSocket.h.
|
inline |
Definition at line 26 of file TCPSocket.h.
|
inline |
Definition at line 27 of file TCPSocket.h.
|
inlinevirtual |
Definition at line 29 of file TCPSocket.h.
|
inlineprivate |
Definition at line 32 of file TCPSocket.h.
|
inherited |
Definition at line 90 of file FileDescriptor.cc.
int connect | ( | ) |
Definition at line 32 of file TCPSocket.cc.
int connect | ( | const std::string & | ip, |
unsigned short | port | ||
) |
Definition at line 25 of file TCPSocket.cc.
|
inherited |
Definition at line 33 of file FileDescriptor.cc.
unsigned int getAddress | ( | ) |
Definition at line 189 of file TCPSocket.cc.
|
inline |
Definition at line 37 of file TCPSocket.h.
int getLocalAddress | ( | ) |
Definition at line 167 of file TCPSocket.cc.
const std::string getLocalIP | ( | ) |
Definition at line 156 of file TCPSocket.cc.
int getLocalPort | ( | ) |
Definition at line 178 of file TCPSocket.cc.
|
inline |
Definition at line 38 of file TCPSocket.h.
void print | ( | ) |
Definition at line 144 of file TCPSocket.cc.
|
virtual |
Definition at line 107 of file TCPSocket.cc.
size_t read_once | ( | void * | v, |
size_t | count | ||
) |
Definition at line 126 of file TCPSocket.cc.
|
inherited |
Definition at line 38 of file FileDescriptor.cc.
|
inherited |
Definition at line 64 of file FileDescriptor.cc.
void setBufferSize | ( | int | size | ) |
Definition at line 72 of file TCPSocket.cc.
|
inline |
Definition at line 35 of file TCPSocket.h.
|
inline |
Definition at line 36 of file TCPSocket.h.
|
virtual |
Definition at line 84 of file TCPSocket.cc.
|
friend |
Definition at line 23 of file TCPSocket.h.
|
protectedinherited |
Definition at line 31 of file FileDescriptor.h.
|
private |
Definition at line 54 of file TCPSocket.h.
|
private |
Definition at line 55 of file TCPSocket.h.