static Protocol protocolIDByName(const SString & name)
Protocol protocol
int socketfd
TimeVal birthTime
TimeVal lastSendTime
TimeVal lastRecvTime
Socket()
Bool setupRemote(char* host, const UInt port)
Bool setupLocal(const Protocol proto, const UInt port)
UInt localPort() const
UInt remotePort() const
struct in_addr localHostInAddress() const
struct in_addr remoteHostInAddress() const
Bool isUDP() const
Bool isTCP() const
Bool setBlocking(const Bool blockingp = True)
Bool send(const Buffer& buf)
Bool receive(Buffer& buf)
Bool receive(Buffer& buf, UInt const size)
Bool send(void * data, const UInt size)
Bool receive(void * data, const UInt size)
Bool read(Buffer& buf)
Bool read(Buffer& buf, UInt const size)
Bool write(const Buffer& buf)
Bool read(void * data, const UInt size)
Bool write(void * data, const UInt size)
void discard(const UInt size)
void copy(const Socket& src)
Bool assignNewFD()
Bool assignNewFD(Protocol proto)
Bool isAlive() const
void kill()
virtual void describe(ostream& ostr, Bool detailp = True) const
Alphabetic index HTML クラス階層 or Java