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