#include <PracticalSocket.h>
Inheritance diagram for CommunicatingSocket:

Public Member Functions | |
| void | connect (const string &foreignAddress, unsigned short foreignPort) throw (SocketException) |
| void | send (const void *buffer, int bufferLen) throw (SocketException) |
| int | recv (void *buffer, int bufferLen) throw (SocketException) |
| string | getForeignAddress () throw (SocketException) |
| unsigned short | getForeignPort () throw (SocketException) |
Protected Member Functions | |
| CommunicatingSocket (int type, int protocol) throw (SocketException) | |
| CommunicatingSocket (int newConnSD) | |
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
Attempt to establish a socket connection with the given foreign address and port
|
|
||||||||||||
|
Write the given buffer to this socket. Call connect() before calling send()
|
|
||||||||||||
|
Read into the given buffer up to bufferLen bytes data from this socket. Call connect() before calling recv()
|
|
|
Get the foreign address. Call connect() before calling recv()
|
|
|
Get the foreign port. Call connect() before calling recv()
|
1.4.5-20051010