19 Socket(const char *host
, int port
);
20 Socket(const char *host
, int port
, int localPort
);
23 bool operator !() const;
28 int read(char *buffer
, int size
, int flags
= 0);
29 int write(const char *buffer
, int size
, int flags
= 0);
31 istream
&getInputStream();
32 ostream
&getOutputStream();
35 const char *getLastError() const;
38 Socket(const Socket
&);
39 Socket
&operator = (const Socket
&);
49 char __error_msg
[256];
52 inline int Socket::getPort() const
57 inline const char *Socket::getLastError() const