#include <TcpStream.hpp>
Public Methods | |
| TCPStream () | |
| TCPStream (Socket &server) | |
| ~TCPStream () | |
| void | accept (Socket &server) |
| void | write (char *data, int size) |
| void | write (string &data) |
| string | read () |
| string | read (int size) |
| bool | isPending (unsigned long timeout) |
|
|
Default constructor. Don't open any connection. |
|
|
Construtor. Accept a connection from the specified server socket. |
|
|
Destructor. Close the connection. |
|
|
Accept a connection from the server socket. |
|
|
Check if any data is waiting.
|
|
|
Recieve data.
|
|
|
Recieve all awaiting data.
|
|
|
Write data to the connected client. |
|
||||||||||||
|
Write data to the connected client. |
1.2.12 written by Dimitri van Heesch,
© 1997-2001