#include <socket.h>
Inheritance diagram for tcpstream:
Public Member Functions | |
tcpstream (const tcpstream &rhs) | |
tcpstream () | |
Construct an unopened "tcpstream" object. | |
tcpstream (const char *addr, int buffer=512) | |
Construct and "open" (connect) the tcp stream to a remote socket. | |
tcpstream (TCPSocket &tcp, int buffer=512) | |
Construct and "accept" (connect) the tcp stream through a server. | |
void | open (const char *addr, int buffer=512) |
Open a tcp stream connection. | |
void | open (TCPSocket &tcp, int buffer=512) |
Open a tcp stream connection by accepting a tcp socket. | |
void | close (void) |
Close the active tcp stream connection. | |
bool | operator! () const |
Test to see if stream is open. |
This class behaves a lot more like fstream and similar classes.
tcp.cpp, and tcpstr1.cpp.
|
|
|
Construct an unopened "tcpstream" object.
|
|
Construct and "open" (connect) the tcp stream to a remote socket.
|
|
Construct and "accept" (connect) the tcp stream through a server.
|
|
Close the active tcp stream connection.
|
|
Open a tcp stream connection by accepting a tcp socket.
|
|
Open a tcp stream connection. This will close the currently active connection first.
|
|
Test to see if stream is open.
Reimplemented from Socket. |