34 #ifndef PTLIB_TCPSOCKET_H 35 #define PTLIB_TCPSOCKET_H 141 unsigned queueSize = 5,
147 unsigned queueSize = 5,
216 #include "msos/ptlib/tcpsock.h" 218 #include "unix/ptlib/tcpsock.h" 222 #endif // PTLIB_TCPSOCKET_H
virtual PObject * Clone() const
Create a copy of the class on the heap.
virtual PBoolean Write(const void *buf, PINDEX len)
Low level write to the channel.
This class describes a type of socket that will communicate using the Internet Protocol.
Definition: ipsock.h:63
WORD port
Port to be used by the socket when opening the channel.
Definition: socket.h:444
BOOL PBoolean
Definition: object.h:102
virtual PBoolean Listen(unsigned queueSize=5, WORD port=0, Reusability reuse=AddressIsExclusive)
Listen on a socket for a remote host on the specified port number.
virtual PBoolean Accept(PSocket &socket)
Open a socket to a remote host on the specified port number.
PTCPSocket(WORD port=0)
Create a TCP/IP protocol socket channel.
The character string class.
Definition: pstring.h:108
A socket that uses the TCP transport on the Internet Protocol.
Definition: tcpsock.h:44
virtual PBoolean OpenSocket()
A class describing an IP address.
Definition: ipsock.h:75
virtual const char * GetProtocolName() const
This function returns the protocol name for the socket type.
A network communications channel.
Definition: socket.h:58
virtual PBoolean WriteOutOfBand(const void *buf, PINDEX len)
Write out of band data from the TCP/IP stream.
Reusability
Flags to reuse of port numbers in Listen() function.
Definition: socket.h:84
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
virtual void OnOutOfBand(const void *buf, PINDEX len)
This is callback function called by the system whenever out of band data from the TCP/IP stream is re...