30 #ifndef PTLIB_TCPSOCKET_H
31 #define PTLIB_TCPSOCKET_H
182 #include "msos/ptlib/tcpsock.h"
184 #include "unix/ptlib/tcpsock.h"
188 #endif // PTLIB_TCPSOCKET_H
virtual PObject * Clone() const
Create a copy of the class on the heap.
virtual bool InternalListen(const Address &bind, unsigned queueSize, WORD port, Reusability reuse)
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:47
virtual PBoolean Accept(PSocket &socket)
Open a socket to a remote host on the specified port number.
bool PBoolean
Definition: object.h:174
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:40
virtual PBoolean OpenSocket()
A class describing an IP address.
Definition: ipsock.h:59
virtual const char * GetProtocolName() const
This function returns the protocol name for the socket type.
A network communications channel.
Definition: socket.h:59
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:85
Ultimate parent class for all objects in the class library.
Definition: object.h:2204
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...