class tcpstream
|
C++ "fstream" style tcpstream class.
More... |
|
|
Public Members
Detailed Description
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 (char *addr, int buffer = 512)
|
Construct and "open" (connect) the tcp stream to a remote
socket.
Parameters:
addr | string address in form addr:port.
|
buffer | size for streaming (optional).
|
Construct and "accept" (connect) the tcp stream through
a server.
Parameters:
tcp | socket to accept from.
|
buffer | size for streaming (optional).
|
void open (char *addr, int buffer = 512)
|
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)
|
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.
Test to see if stream is open.
Reimplemented from Socket
- Author: David Sugar <dyfet@ostel.com>
- Generated: dyfet@home.sys on Tue Mar 7 09:18:03 200.