|
|
A class for dealing with sockets.
|
Constructs a ppsocket
|
Copy constructor
~ |
[virtual]
Destructor
bool |
[virtual]
Connects to a given host.
Parameters:
Returns: true on success, false otherwise.
bool |
[virtual]
Reopens the connection after closing it.
Returns: true on success, false otherwise.
string |
[virtual]
Retrieve a string representation of the ppsocket.
Returns: a string in the form "<host>:<hostport> -> <peer>:<peerport>" where elements not known, are replaced by "???" and none-existing elements are represented by the word "none".
bool |
[virtual]
Starts listening.
Parameters:
Returns: true on success, false otherwise.
ppsocket * |
Accept a connection.
Parameters:
Returns: A pointer to a new instance for the accepted connection or NULL if an error happened.
bool |
[const]
Check and optionally wait for incoming data.
Parameters:
Returns: true if data is available, false otherwise.
int |
Receive data into a bufferStore .
Parameters:
Returns: 1 if a bufferStore received, 0, if no bufferStore received, -1 on error.
bool |
Sends data from a bufferStore .
Parameters:
Returns: true on success, false otherwise.
bool |
Closes the connection.
Returns: true on success, false otherwise.
bool |
Binds to a local address and port.
Parameters:
Returns: true on success, false otherwise.
bool |
Tries repeated binds to a local address and port.
If Retries
is <= High
- Low,
then
the port to bind is randomly chosen in the given range.
Otherwise, all ports starting from High
up to Low
are tried in sequence.
Parameters:
Returns: true on success, false otherwise.
bool |
Sets the linger parameter of the socket.
Parameters:
Returns: true on success, false otherwise.
bool |
Retrieves peer information.
Parameters:
Returns: true on success, false otherwise.
bool |
Retrieves local information.
Parameters:
Returns: true on success, false otherwise.
void |
Registers an IOWatch for this socket. This IOWatch gets the socket added/removed automatically.
Parameters:
Generated by: felfert@floh.fe.think on Mon Jul 23 21:42:43 2001, using kdoc 2.0a40. |