class PSPXSocket

Create a socket channel that uses the SPX transport over the IPX Protocol

Inheritance:


Public Methods

[more] Construction.
[more] Overrides from class PSocket.


Inherited from PIPXSocket:

Public Methods

Overrides from class PChannel

Overrides from class PSocket

Address and name space look up functions

I/O functions

Public Members

class Address
IPX protocol address specification


Inherited from PSocket:

Public Methods

Socket establishment functions

Socket options functions

Port/Service database functions

Integer conversion functions

Public Members

Multiple socket selection functions

Protected Fields

oWORD port

Protected Methods

ovirtual const char* GetProtocolName() const


Inherited from PChannel:

Public Methods

Construction

Overrides from class PObject

Information functions

Reading functions

Writing functions

Miscellaneous functions

ostatic BOOL ConvertOSError( int libcReturnValue, Errors & lastError, int & osError )

Public Members

Error functions

Protected Fields

oint os_handle
oErrors lastErrorCode[NumErrorGroups+1]
oint lastErrorNumber[NumErrorGroups+1]
oPINDEX lastReadCount
oPINDEX lastWriteCount
oPTimeInterval readTimeout
oPTimeInterval writeTimeout

Protected Methods

ovirtual BOOL ConvertOSError( int libcReturnValue, ErrorGroup group = LastGeneralError )
oBOOL SetErrorValues( Errors errorCode, int osError, ErrorGroup group = LastGeneralError )
oint ReadCharWithTimeout( PTimeInterval & timeout )


Inherited from PObject:

Public Methods

Run Time Type functions

Public Members

Comparison functions


Documentation

Create a socket channel that uses the SPX transport over the IPX Protocol
o Construction.

o PSPXSocket( WORD port = 0 )
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.

Parameters:
- port Port number to use for the connection.

o Overrides from class PSocket.

ovirtual BOOL Listen( unsigned queueSize = 5, WORD port = 0, Reusability reuse = AddressIsExclusive )
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.

Parameters:
queueSize - Number of pending accepts that may be queued.
- port Port number to use for the connection.
reuse - Can/Cant listen more than once.
Returns:
TRUE if the channel was successfully opened.

ovirtual BOOL Accept( PSocket & socket )
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.

Parameters:
socket - Listening socket making the connection.
Returns:
TRUE if the channel was successfully opened.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.