41 #ifndef _networktcpsocket_cpp
42 #define _networktcpsocket_cpp
44 #include "Network/platformsocket.h.cpp"
46 #include "Network/tcpsocket.h"
47 #include "Network/tcpv4socket.h"
48 #include "Network/tcpv6socket.h"
75 if( SockPtr != NULL ) {
90 int Value = ( Alive ? 1 : 0 );
99 return ( Value != 0 );
104 int Value = ( NoDelay ? 1 : 0 );
113 return ( Value != 0 );
TCPSocket()
Class constructor.
PlatformSocket * InternalSocket
A pointer to the internal system socket.
void SetNoDelay(const Boole NoDelay)
If enabled, the Nagle algorithm is disabled and TCP segments will be sent immediately.
bool Boole
Generally acts a single bit, true or false.
A TCP socket that uses IPv6 internet addresses for connections.
Boole GetKeepAlive() const
Gets whether or not a connection on this socket should use periodic packets during inactivity to ensu...
int Integer
A datatype used to represent any integer close to.
Internet Protocol version 6.
TransportLayerProtocol
This is an enum listing for recognized protocols on Layer 4 of the OSI model.
A TCP socket that uses IPv4 internet addresses for connections.
TCPSocket * Accept(SystemAddress &Address)
Accepts an incoming connection from a remote host.
Boole Listen(const Integer Backlog=5)
Prepares this socket for incoming connections.
Transmission Control Protocol.
virtual NetworkLayerProtocol GetNetworkLayerProtocol() const =0
Gets the layer 3 protocol this socket is operating on.
TransportLayerProtocol GetTransportLayerProtocol() const
Gets the layer 4 protocol this socket is operating on.
The bulk of the engine components go in this namspace.
virtual ~TCPSocket()
Class destructor.
A socket class using the TCP stream protocol.
void SetKeepAlive(const Boole Alive)
Sets whether or not a connection on this socket should use periodic packets during inactivity to ensu...
Boole GetNoDelay() const
Gets whether or not the Nagle algorithm is disabled.
A simple class that stores a complete set of information for establishing connections.
Internet Protocol version 4.