45 void setTcpRecvBufferSize();
46 void setTcpSendBufferSize();
47 bool _haveRecvBufferSize;
48 unsigned int _recvBufferSize;
49 bool _haveSendBufferSize;
50 unsigned int _sendBufferSize;
53 Socket(), _host(host), _portVal(portVal), _haveRecvBufferSize(false), _recvBufferSize(0), _haveSendBufferSize(
54 false), _sendBufferSize(0)
58 Socket(), _host(
""), _portVal(portVal), _haveRecvBufferSize(false), _recvBufferSize(0), _haveSendBufferSize(
59 false), _sendBufferSize(0)
63 Socket(socket, addr), _host(
""), _portVal(0), _haveRecvBufferSize(false), _recvBufferSize(0), _haveSendBufferSize(
64 false), _sendBufferSize(0)
83 virtual void dump(std::ostream &strm)
const;
virtual unsigned int getRecvBufferSize()
get the tcp receive buffer size using getsockopt
virtual void dump(std::ostream &strm) const
dumps information about this object
TcpSocket(int socket, struct sockaddr *addr)
virtual unsigned int getSendBufferSize()
get the tcp send buffer size using getsockopt
TcpSocket(const std::string &host, int portVal)
virtual bool allowConnection()
is there any wrapper code for unix sockets
virtual Socket * newSocket(int socket, struct sockaddr *addr)