class tcpstream
|
C++ "fstream" style tcpstream class.
More... |
|
|
Public Methods
A more natural C++ "tcpstream" class for use by non-threaded
applications. This class behaves a lot more like fstream and
similar classes.
Construct an unopened "tcpstream" object.
tcpstream (const char *addr, int buffer = 512)
| tcpstream |
Construct and "open" (connect) the tcp stream to a remote
socket.
Parameters:
addr | string address in form addr:port.
|
buffer | size for streaming (optional).
|
tcpstream (TCPSocket &tcp, int buffer = 512)
| tcpstream |
Construct and "accept" (connect) the tcp stream through
a server.
Parameters:
tcp | socket to accept from.
|
buffer | size for streaming (optional).
|
void open (const char *addr, int buffer = 512)
| open |
Open a tcp stream connection. This will close the currently
active connection first.
Parameters:
addr | string address in form addr:port.
|
buffer | size for streaming (optional)
|
void open (TCPSocket &tcp, int buffer = 512)
| open |
Open a tcp stream connection by accepting a tcp socket.
Parameters:
tcp | socket to accept from.
|
buffer | size for streaming (optional)
|
Close the active tcp stream connection.
bool operator! ()
| operator! |
[const]
Test to see if stream is open.
Reimplemented from Socket.
- Author: David Sugar
- Generated: dyfet on home on Thu Jan 24 11:06:29 2002, using kdoc 2.0a53.