#include <spxsock.h>
Inheritance diagram for PSPXSocket:
Public Member Functions | |
Construction. | |
PSPXSocket (WORD port=0) | |
Overrides from class PSocket. | |
virtual BOOL | Listen (unsigned queueSize=5, WORD port=0, Reusability reuse=AddressIsExclusive) |
virtual BOOL | Accept (PSocket &socket) |
Protected Member Functions | |
virtual BOOL | OpenSocket () |
virtual const char * | GetProtocolName () const |
|
Create an SPX protocol socket channel. If a remote machine address or a "listening" socket is specified then the channel is also opened. Note that the "copy" constructor here is really a "listening" socket the same as the PSocket & parameter version.
|
|
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 PSocket. |
|
This function returns the protocol name for the socket type. Reimplemented from PIPXSocket. |
|
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 port# parameter is zero then the port number as defined by the object instance construction or the PIPSocket::SetPort()# function.
Reimplemented from PIPXSocket. |
|
Reimplemented from PIPXSocket. |