A socket that uses the TCP transport on the Internet Protocol
![]() | Construction. |
![]() | Overrides from class PObject. |
![]() | Overrides from class PChannel. |
![]() | Overrides from class PSocket. |
![]() | New functions for class. |
Socket establishment functions
Socket options functions
Port/Service database functions
Multiple socket selection functions
Integer conversion functions
Construction
Overrides from class PObject
Information functions
Reading functions
Writing functions
Miscellaneous functions
Error functions
Run Time Type functions
Comparison functions
I/O functions
A socket that uses the TCP transport on the Internet Protocol
Note that what looks like a "copy" constructor here is really a the accept of a "listening" socket the same as the PSocket & parameter version constructor.
The main user of the clone function is the PDictionary class as it requires copies of the dictionary keys.
The default behaviour is for this function to assert.
The GetErrorCode() function should be consulted after Write() returns FALSE to determine what caused the failure.
This override repeatedly writes if there is no error until all of the requested bytes have been written.
If the port parameter is zero then the port number as defined by the object instance construction or the PIPSocket::SetPort() function.
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.
virtual BOOL Accept( PSocket & socket )
This is subject to the write timeout and sets the lastWriteCount member variable in the same way as usual PChannel::Write() function.
The default behaviour is for the out of band data to be ignored.
virtual void OnOutOfBand( const void * buf, PINDEX len )
len - Number of bytes pointed to by buf.
Alphabetic index HTML hierarchy of classes or Java