#include <socks.h>
Inheritance diagram for PSocksSocket:
Public Member Functions | |
PSocksSocket (WORD port=0) | |
virtual BOOL | Connect (const PString &address) |
virtual BOOL | Connect (const Address &addr) |
virtual BOOL | Listen (unsigned queueSize=5, WORD port=0, Reusability reuse=AddressIsExclusive) |
BOOL | Accept () |
virtual BOOL | Accept (PSocket &socket) |
virtual BOOL | GetLocalAddress (Address &addr) |
virtual BOOL | GetLocalAddress (Address &addr, WORD &port) |
virtual BOOL | GetPeerAddress (Address &addr) |
virtual BOOL | GetPeerAddress (Address &addr, WORD &port) |
Protected Member Functions | |
virtual void | SetErrorCodes (PChannel::Errors errCode, int osErr) |
int | TransferHandle (PSocksSocket &destination) |
|
|
|
Open a socket to a remote host on the specified port number. This is an "accepting" socket. When a "listening" socket has a pending connection to make, this will accept a connection made by the "connecting" socket created to establish a link. The port that the socket uses is the one used in the #Listen()# command of the #socket# parameter. Note that this function will block until a remote system connects to the port number specified in the "listening" socket.
Reimplemented from PTCPSocket. |
|
Open a socket to a remote host on the specified port number. This is an "accepting" socket. When a "listening" socket has a pending connection to make, this will accept a connection made by the "connecting" socket created to establish a link.
The port that the socket uses is the one used in the Listen() command of the Note that this function will block until a remote system connects to the port number specified in the "listening" socket.
A further note is that when the version that uses a parameter is used, the
|
|
Reimplemented from PIPSocket. |
|
Connect a socket to a remote host on the specified port number. This is typically used by the client or initiator of a communications channel. This connects to a "listening" socket at the other end of the communications channel. The port number as defined by the object instance construction or the PIPSocket::SetPort() function.
Reimplemented from PIPSocket. |
|
Reimplemented from PIPSocket. |
|
Get the Internet Protocol address for the local host.
Reimplemented from PIPSocket. |
|
Reimplemented from PIPSocket. |
|
Get the Internet Protocol address for the peer host the socket is connected to.
Reimplemented from PIPSocket. |
|
Listen on a socket for a remote host on the specified port number. This may be used for server based applications. A "connecting" socket begins a connection by initiating a connection to this socket. An active socket of this type is then used to generate other "accepting" sockets which establish a two way communications channel with the "connecting" socket.
If the
For the UDP protocol, the
Reimplemented from PTCPSocket. |
|
Implements PSocksProtocol. |
|
|