|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
Abstract base class for all point-to-point network connections. More...
#include <NetworkConnections.h>
Public Member Functions | |
| NetworkConnection () | |
| ~NetworkConnection () | |
| virtual bool | disconnect (uint16 error=0) |
| Close the connection and release the socket. | |
| virtual bool | reconnect (uint32 timeoutMS)=0 |
| Re-establish the connection to the previously known remote endpoint. | |
| virtual bool | didConnect (int timeout=0) |
| Check/complete an in-progress (delayed) connect on the existing socket. | |
| virtual bool | didConnect (SOCKET s, int timeout) |
| Variant of didConnect() testing an explicit socket handle. | |
| virtual bool | isConnected (int timeout=0) |
| Test whether the connection is currently alive. | |
| virtual bool | isRemote () |
| virtual uint64 | getRemoteAddress () |
| bool | setConnectTimeout (uint32 timeoutMS) |
| Set the timeout used by subsequent connect()/reconnect() attempts. | |
| virtual bool | send (const char *data, uint32 size, uint64 receiver=0)=0 |
| Send raw bytes on the connection. | |
| virtual bool | receive (char *data, uint32 size, uint32 timeout, bool peek=false) |
Receive exactly size bytes into data, waiting up to timeout ms. | |
| virtual bool | receiveAvailable (char *data, uint32 &size, uint32 maxSize, uint32 timeout, bool peek=false) |
Receive whatever bytes are available (up to maxSize). | |
| virtual bool | discard (uint32 size) |
Drop size bytes from the front of the receive buffer (after a peek). | |
| virtual uint32 | clearBuffer () |
| Discard all currently buffered input. | |
| virtual bool | waitForDataToRead (uint32 timeout) |
| Block until data is readable (buffered or on the socket). | |
| virtual bool | waitForDataToBeWritten (uint32 timeout) |
| Block until the socket is writable. | |
| virtual uint32 | getOutputSpeed () |
| virtual uint32 | getInputSpeed () |
| virtual uint8 | getConnectionType () |
| bool | setGreetingData (const char *data, uint32 size) |
| Set greeting bytes sent automatically right after a connection is established (used e.g. | |
| Public Member Functions inherited from cmlabs::Runnable | |
| Runnable () | |
| Initialise flags: not running, allowed to continue. | |
| virtual | ~Runnable () |
| Destructor requests a stop (with the default timeout) before destruction proceeds. | |
| virtual bool | stop (uint32 timeout=200) |
| Ask the worker loop to finish and wait for it to do so. | |
Public Attributes | |
| char * | greetingData |
| Owned copy of the greeting bytes (NULL if unset). | |
| uint32 | greetingSize |
| Size of ::greetingData in bytes. | |
Protected Member Functions | |
| void | disconnectInternal (uint16 error) |
| virtual int32 | readIntoBuffer () |
| virtual bool | resizeBuffer (uint32 len) |
| virtual bool | run () |
Protected Attributes | |
| uint8 | type |
| uint64 | remoteAddress |
| uint64 | localAddress |
| uint64 | lastActivity |
| uint32 | threadID |
| SOCKET | socket |
| bool | remote |
| uint32 | bufferLen |
| uint32 | bufferContentLen |
| uint32 | bufferContentPos |
| NetworkDataReceiver * | receiver |
| utils::Mutex | mutex |
| utils::Mutex | sendMutex |
| char * | buffer |
| uint32 | connectTimeoutMS |
| uint32 | inputSpeed |
| uint32 | outputSpeed |
| uint64 | inputBytes |
| uint64 | outputBytes |
| Protected Attributes inherited from cmlabs::Runnable | |
| uint32 | threadID |
| ThreadManager slot ID of the worker thread (0 until known). | |
| bool | shouldContinue |
| Loop-continuation flag; cleared by stop(). | |
| bool | isRunning |
| Set by the worker while its loop is active. | |
Abstract base class for all point-to-point network connections.
Owns the socket, an elastic receive buffer (starting at INITIALBUFFERSIZE and grown on demand), throughput statistics and the connect-timeout setting. Concrete subclasses (TCPConnection, UDPConnection, SSLConnection) implement send(), reconnect() and the socket-specific read path.
mutex and sends are serialised by sendMutex, so one consumer plus concurrent producers are safe. Blocking calls take millisecond timeouts and never block indefinitely. Definition at line 522 of file NetworkConnections.h.
| cmlabs::NetworkConnection::NetworkConnection | ( | ) |
Definition at line 306 of file NetworkConnections.cpp.
References buffer, bufferContentLen, bufferContentPos, bufferLen, CHECKNETWORKINIT, connectTimeoutMS, greetingData, greetingSize, INITIALBUFFERSIZE, inputBytes, inputSpeed, INVALID_SOCKET, lastActivity, localAddress, outputBytes, outputSpeed, receiver, remote, remoteAddress, resizeBuffer(), socket, threadID, and type.
Referenced by cmlabs::SSLConnection::SSLConnection(), cmlabs::TCPConnection::TCPConnection(), and cmlabs::UDPConnection::UDPConnection().
| cmlabs::NetworkConnection::~NetworkConnection | ( | ) |
Definition at line 329 of file NetworkConnections.cpp.
References buffer, bufferContentLen, bufferContentPos, bufferLen, disconnect(), greetingData, greetingSize, INVALID_SOCKET, lastActivity, localAddress, receiver, remote, remoteAddress, socket, and threadID.
|
virtual |
Discard all currently buffered input.
Definition at line 689 of file NetworkConnections.cpp.
References bufferContentLen, bufferContentPos, inputBytes, LOG_NETWORK, LogPrint, mutex, and readIntoBuffer().
Referenced by cmlabs::NetworkChannel::sendReceiveTelnetLine().
|
virtual |
Check/complete an in-progress (delayed) connect on the existing socket.
| timeout | Milliseconds to wait for the connect to complete (0 = poll). |
Reimplemented in cmlabs::SSLConnection.
Definition at line 949 of file NetworkConnections.cpp.
References cmlabs::utils::GetLastOSErrorNumber(), INVALID_SOCKET, mutex, and socket.
Referenced by cmlabs::TCPConnection::connect(), and cmlabs::SSLConnection::didConnect().
|
virtual |
Variant of didConnect() testing an explicit socket handle.
| s | Socket to test. |
| timeout | Milliseconds to wait. |
s is connected. Definition at line 864 of file NetworkConnections.cpp.
References cmlabs::utils::GetLastOSErrorNumber(), and SOCKET.
|
virtual |
Drop size bytes from the front of the receive buffer (after a peek).
| size | Number of bytes to discard. |
Definition at line 672 of file NetworkConnections.cpp.
References bufferContentLen, bufferContentPos, inputBytes, mutex, and readIntoBuffer().
Referenced by cmlabs::HTTPProtocol::ReceiveHTTPReply(), cmlabs::HTTPProtocol::ReceiveHTTPRequest(), cmlabs::TelnetProtocol::ReceiveTelnetLine(), and cmlabs::HTTPProtocol::ReceiveWebsocketData().
|
virtual |
Close the connection and release the socket.
| error | Optional NETWORKERROR_* reason forwarded to a data receiver. |
Reimplemented in cmlabs::SSLConnection.
Definition at line 395 of file NetworkConnections.cpp.
References disconnectInternal(), and mutex.
Referenced by cmlabs::NetworkChannel::HTTPClientRun(), cmlabs::LLMConnection::interactStream(), cmlabs::NetworkChannel::MessageConnectionRun(), cmlabs::TCPConnection::reconnect(), cmlabs::UDPConnection::reconnect(), run(), cmlabs::TCPConnection::send(), cmlabs::UDPConnection::send(), and ~NetworkConnection().
|
protected |
Definition at line 378 of file NetworkConnections.cpp.
References closesocket, INVALID_SOCKET, LOG_NETWORK, LogPrint, receiver, SD_BOTH, socket, and cmlabs::Runnable::stop().
Referenced by cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::UDPConnection::connect(), disconnect(), cmlabs::SSLConnection::disconnect(), cmlabs::UDPConnection::initForOutputOnly(), isConnected(), readIntoBuffer(), cmlabs::SSLConnection::readIntoBuffer(), and receiveAvailable().
|
virtual |
Definition at line 1102 of file NetworkConnections.cpp.
References type.
Referenced by cmlabs::NetworkChannel::getConnectionType().
|
virtual |
Definition at line 1098 of file NetworkConnections.cpp.
References inputSpeed.
Referenced by cmlabs::NetworkChannel::getInputSpeed().
|
virtual |
Definition at line 1094 of file NetworkConnections.cpp.
References outputSpeed.
Referenced by cmlabs::NetworkChannel::getOutputSpeed().
|
virtual |
Definition at line 370 of file NetworkConnections.cpp.
References remoteAddress.
Referenced by cmlabs::NetworkChannel::getRemoteAddress(), cmlabs::NetworkChannel::MessageConnectionRun(), cmlabs::HTTPProtocol::ReceiveHTTPReply(), cmlabs::HTTPProtocol::ReceiveHTTPRequest(), cmlabs::TelnetProtocol::ReceiveTelnetLine(), cmlabs::TelnetProtocol::ReceiveTelnetLine(), and cmlabs::HTTPProtocol::ReceiveWebsocketData().
|
virtual |
Test whether the connection is currently alive.
| timeout | Milliseconds to allow for probing the socket (0 = immediate). |
Reimplemented in cmlabs::SSLConnection.
Definition at line 718 of file NetworkConnections.cpp.
References disconnectInternal(), cmlabs::utils::GetLastOSErrorNumber(), INVALID_SOCKET, mutex, cmlabs::utils::SetSocketNonBlockingMode(), socket, SOCKETTRYAGAIN, SOCKETWOULDBLOCK, type, and UDPCON.
Referenced by cmlabs::NetworkChannel::HTTPClientRun(), cmlabs::NetworkChannel::HTTPServerRun(), cmlabs::NetworkChannel::isConnected(), cmlabs::NetworkChannel::MessageConnectionRun(), cmlabs::NetworkTest_TCPClient(), cmlabs::NetworkTest_TCPServer(), and cmlabs::NetworkChannel::TelnetServerRun().
|
virtual |
Definition at line 374 of file NetworkConnections.cpp.
References remote.
|
protectedvirtual |
Reimplemented in cmlabs::SSLConnection.
Definition at line 442 of file NetworkConnections.cpp.
References buffer, bufferContentLen, bufferContentPos, bufferLen, disconnectInternal(), cmlabs::utils::GetLastOSErrorNumber(), cmlabs::GetTimeAge(), cmlabs::GetTimeNow(), LOG_NETWORK, LogPrint, NETWORKERROR_RECEIVE, resizeBuffer(), socket, SOCKET_ERROR, SOCKETTRYAGAIN, SOCKETWOULDBLOCK, TCPCON, type, UDPCON, and cmlabs::utils::WaitForSocketReadability().
Referenced by clearBuffer(), discard(), receive(), and receiveAvailable().
|
virtual |
Receive exactly size bytes into data, waiting up to timeout ms.
| data | Destination buffer of at least size bytes. |
| size | Exact number of bytes required. |
| timeout | Maximum wait in milliseconds. |
| peek | When true the bytes remain in the internal buffer (subsequent reads see them again). |
size bytes were delivered before the timeout. Reimplemented in cmlabs::SSLConnection.
Definition at line 606 of file NetworkConnections.cpp.
References buffer, bufferContentLen, bufferContentPos, cmlabs::GetTimeAge(), cmlabs::GetTimeAgeMS(), cmlabs::GetTimeNow(), inputBytes, inputSpeed, mutex, readIntoBuffer(), socket, and cmlabs::utils::WaitForSocketReadability().
Referenced by cmlabs::NetworkTest_SendReceiveData(), cmlabs::NetworkTest_TCPClient(), cmlabs::NetworkTest_TCPServer(), cmlabs::HTTPProtocol::ReceiveHTTPReply(), cmlabs::HTTPProtocol::ReceiveHTTPRequest(), cmlabs::MessageProtocol::ReceiveMessage(), cmlabs::TelnetProtocol::ReceiveTelnetLine(), cmlabs::HTTPProtocol::ReceiveWebsocketData(), and run().
|
virtual |
Receive whatever bytes are available (up to maxSize).
| data | Destination buffer. |
| size | Out: number of bytes actually delivered. |
| maxSize | Capacity of data. |
| timeout | Maximum wait in milliseconds for at least one byte. |
| peek | When true the bytes remain buffered. |
Reimplemented in cmlabs::SSLConnection.
Definition at line 537 of file NetworkConnections.cpp.
References buffer, bufferContentLen, bufferContentPos, bufferLen, disconnectInternal(), cmlabs::GetTimeAgeMS(), cmlabs::GetTimeNow(), INITIALBUFFERSIZE, inputBytes, LOG_NETWORK, LogPrint, mutex, NETWORKERROR_RECEIVE, readIntoBuffer(), resizeBuffer(), socket, and cmlabs::utils::WaitForSocketReadability().
Referenced by cmlabs::NetworkChannel::ConnectionAutodetectRun(), cmlabs::HTTPProtocol::ReceiveHTTPReply(), cmlabs::HTTPProtocol::ReceiveHTTPRequest(), cmlabs::TelnetProtocol::ReceiveTelnetLine(), and cmlabs::HTTPProtocol::ReceiveWebsocketData().
|
pure virtual |
Re-establish the connection to the previously known remote endpoint.
| timeoutMS | Maximum time to spend connecting, in milliseconds. |
Implemented in cmlabs::SSLConnection, cmlabs::TCPConnection, and cmlabs::UDPConnection.
References SOCKET.
Referenced by cmlabs::NetworkChannel::HTTPClientRun(), and cmlabs::NetworkChannel::MessageConnectionRun().
|
protectedvirtual |
Definition at line 402 of file NetworkConnections.cpp.
References buffer, bufferContentLen, bufferContentPos, and bufferLen.
Referenced by NetworkConnection(), readIntoBuffer(), cmlabs::SSLConnection::readIntoBuffer(), cmlabs::SSLConnection::receive(), receiveAvailable(), and cmlabs::SSLConnection::receiveAvailable().
|
protectedvirtual |
Definition at line 1049 of file NetworkConnections.cpp.
References disconnect(), GETIPADDRESSQUAD, GETIPPORT, INITIALBUFFERSIZE, cmlabs::Runnable::isRunning, LOG_NETWORK, LogPrint, NETWORKERROR_MEMORYFULL, receive(), receiver, remoteAddress, and cmlabs::Runnable::shouldContinue.
Referenced by cmlabs::SSLConnection::SSLConnectionRun, cmlabs::TCPConnection::TCPConnectionRun, and cmlabs::UDPConnection::UDPConnectionRun.
|
pure virtual |
Send raw bytes on the connection.
| data | Bytes to send (caller retains ownership). |
| size | Number of bytes to send. |
| receiver | Destination endpoint (uint64 address+port); used by UDP, ignored by stream transports. |
Implemented in cmlabs::SSLConnection, cmlabs::TCPConnection, and cmlabs::UDPConnection.
References receiver.
Referenced by cmlabs::NetworkChannel::HTTPClientRun(), cmlabs::NetworkChannel::MessageConnectionRun(), cmlabs::NetworkTest_TCPServer(), cmlabs::HTTPProtocol::SendHTTPReply(), cmlabs::HTTPProtocol::SendHTTPRequest(), cmlabs::MessageProtocol::SendMessage(), cmlabs::TelnetProtocol::SendTelnetLine(), and cmlabs::HTTPProtocol::SendWebsocketData().
| bool cmlabs::NetworkConnection::setConnectTimeout | ( | uint32 | timeoutMS | ) |
Set the timeout used by subsequent connect()/reconnect() attempts.
| timeoutMS | Timeout in milliseconds. |
Definition at line 365 of file NetworkConnections.cpp.
References connectTimeoutMS.
Referenced by cmlabs::NetworkChannel::startConnection().
| bool cmlabs::NetworkConnection::setGreetingData | ( | const char * | data, |
| uint32 | size ) |
Set greeting bytes sent automatically right after a connection is established (used e.g.
to identify the peer or select a protocol).
| data | Greeting bytes (copied). |
| size | Byte count. |
Definition at line 351 of file NetworkConnections.cpp.
References greetingData, and greetingSize.
Referenced by cmlabs::NetworkChannel::addTCPConnection(), and cmlabs::NetworkChannel::addTCPConnection().
|
virtual |
Block until the socket is writable.
| timeout | Maximum wait in milliseconds. |
Definition at line 713 of file NetworkConnections.cpp.
References socket, and cmlabs::utils::WaitForSocketWriteability().
|
virtual |
Block until data is readable (buffered or on the socket).
| timeout | Maximum wait in milliseconds. |
Definition at line 705 of file NetworkConnections.cpp.
References bufferContentLen, bufferContentPos, socket, and cmlabs::utils::WaitForSocketReadability().
Referenced by cmlabs::HTTPProtocol::ReceiveHTTPReply(), cmlabs::HTTPProtocol::ReceiveHTTPRequest(), cmlabs::TelnetProtocol::ReceiveTelnetLine(), cmlabs::TelnetProtocol::ReceiveTelnetLine(), and cmlabs::HTTPProtocol::ReceiveWebsocketData().
|
protected |
Definition at line 629 of file NetworkConnections.h.
Referenced by NetworkConnection(), readIntoBuffer(), cmlabs::SSLConnection::readIntoBuffer(), receive(), cmlabs::SSLConnection::receive(), receiveAvailable(), cmlabs::SSLConnection::receiveAvailable(), resizeBuffer(), and ~NetworkConnection().
|
protected |
Definition at line 624 of file NetworkConnections.h.
Referenced by clearBuffer(), cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), discard(), NetworkConnection(), readIntoBuffer(), cmlabs::SSLConnection::readIntoBuffer(), receive(), cmlabs::SSLConnection::receive(), receiveAvailable(), cmlabs::SSLConnection::receiveAvailable(), resizeBuffer(), waitForDataToRead(), and ~NetworkConnection().
|
protected |
Definition at line 625 of file NetworkConnections.h.
Referenced by clearBuffer(), cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), discard(), NetworkConnection(), readIntoBuffer(), cmlabs::SSLConnection::readIntoBuffer(), receive(), cmlabs::SSLConnection::receive(), receiveAvailable(), cmlabs::SSLConnection::receiveAvailable(), resizeBuffer(), waitForDataToRead(), and ~NetworkConnection().
|
protected |
Definition at line 623 of file NetworkConnections.h.
Referenced by NetworkConnection(), readIntoBuffer(), cmlabs::SSLConnection::readIntoBuffer(), cmlabs::SSLConnection::receive(), receiveAvailable(), cmlabs::SSLConnection::receiveAvailable(), resizeBuffer(), and ~NetworkConnection().
|
protected |
Definition at line 630 of file NetworkConnections.h.
Referenced by cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::SSLConnection::delayedConnect(), cmlabs::TCPConnection::delayedConnect(), NetworkConnection(), and setConnectTimeout().
| char* cmlabs::NetworkConnection::greetingData |
Owned copy of the greeting bytes (NULL if unset).
Definition at line 610 of file NetworkConnections.h.
Referenced by cmlabs::NetworkChannel::HTTPClientRun(), cmlabs::NetworkChannel::MessageConnectionRun(), NetworkConnection(), setGreetingData(), and ~NetworkConnection().
| uint32 cmlabs::NetworkConnection::greetingSize |
Size of ::greetingData in bytes.
Definition at line 611 of file NetworkConnections.h.
Referenced by cmlabs::NetworkChannel::HTTPClientRun(), cmlabs::NetworkChannel::MessageConnectionRun(), NetworkConnection(), setGreetingData(), and ~NetworkConnection().
|
protected |
Definition at line 633 of file NetworkConnections.h.
Referenced by clearBuffer(), discard(), NetworkConnection(), receive(), cmlabs::SSLConnection::receive(), receiveAvailable(), and cmlabs::SSLConnection::receiveAvailable().
|
protected |
Definition at line 631 of file NetworkConnections.h.
Referenced by getInputSpeed(), NetworkConnection(), receive(), and cmlabs::SSLConnection::receive().
|
protected |
Definition at line 619 of file NetworkConnections.h.
Referenced by NetworkConnection(), and ~NetworkConnection().
|
protected |
Definition at line 618 of file NetworkConnections.h.
Referenced by cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::UDPConnection::connect(), cmlabs::UDPConnection::getLocalAddress(), NetworkConnection(), cmlabs::UDPConnection::reconnect(), and ~NetworkConnection().
|
protected |
Definition at line 627 of file NetworkConnections.h.
Referenced by clearBuffer(), cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::UDPConnection::connect(), cmlabs::SSLConnection::delayedConnect(), cmlabs::TCPConnection::delayedConnect(), didConnect(), discard(), disconnect(), cmlabs::SSLConnection::disconnect(), cmlabs::SSLConnection::init(), cmlabs::SSLConnection::init(), cmlabs::UDPConnection::initForOutputOnly(), isConnected(), cmlabs::SSLConnection::isConnected(), cmlabs::SSLConnection::peekStream(), receive(), cmlabs::SSLConnection::receive(), receiveAvailable(), cmlabs::SSLConnection::receiveAvailable(), and cmlabs::SSLConnection::~SSLConnection().
|
protected |
Definition at line 634 of file NetworkConnections.h.
Referenced by NetworkConnection(), cmlabs::SSLConnection::send(), cmlabs::TCPConnection::send(), and cmlabs::UDPConnection::send().
|
protected |
Definition at line 632 of file NetworkConnections.h.
Referenced by getOutputSpeed(), NetworkConnection(), cmlabs::SSLConnection::send(), cmlabs::TCPConnection::send(), and cmlabs::UDPConnection::send().
|
protected |
Definition at line 626 of file NetworkConnections.h.
Referenced by cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::UDPConnection::connect(), cmlabs::SSLConnection::delayedConnect(), cmlabs::SSLConnection::delayedConnect(), cmlabs::TCPConnection::delayedConnect(), cmlabs::TCPConnection::delayedConnect(), disconnectInternal(), NetworkConnection(), cmlabs::SSLConnection::reconnect(), cmlabs::TCPConnection::reconnect(), cmlabs::UDPConnection::reconnect(), run(), send(), cmlabs::SSLConnection::send(), cmlabs::TCPConnection::send(), cmlabs::UDPConnection::send(), cmlabs::UDPConnection::setDefaultReceiver(), and ~NetworkConnection().
|
protected |
Definition at line 622 of file NetworkConnections.h.
Referenced by cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::SSLConnection::delayedConnect(), cmlabs::TCPConnection::delayedConnect(), isRemote(), NetworkConnection(), and ~NetworkConnection().
|
protected |
Definition at line 617 of file NetworkConnections.h.
Referenced by cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::SSLConnection::delayedConnect(), cmlabs::TCPConnection::delayedConnect(), getRemoteAddress(), NetworkConnection(), cmlabs::SSLConnection::reconnect(), cmlabs::TCPConnection::reconnect(), run(), and ~NetworkConnection().
|
protected |
Definition at line 628 of file NetworkConnections.h.
Referenced by cmlabs::SSLConnection::send(), cmlabs::TCPConnection::send(), and cmlabs::UDPConnection::send().
|
protected |
Definition at line 621 of file NetworkConnections.h.
Referenced by cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::UDPConnection::connect(), didConnect(), disconnectInternal(), cmlabs::SSLConnection::findRemoteAddress(), cmlabs::TCPConnection::findRemoteAddress(), cmlabs::UDPConnection::initForOutputOnly(), isConnected(), cmlabs::SSLConnection::isConnected(), NetworkConnection(), readIntoBuffer(), receive(), cmlabs::SSLConnection::receive(), receiveAvailable(), cmlabs::SSLConnection::receiveAvailable(), cmlabs::SSLConnection::send(), cmlabs::TCPConnection::send(), cmlabs::UDPConnection::send(), waitForDataToBeWritten(), waitForDataToRead(), and ~NetworkConnection().
|
protected |
Definition at line 620 of file NetworkConnections.h.
Referenced by cmlabs::SSLConnection::connect(), cmlabs::SSLConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::TCPConnection::connect(), cmlabs::UDPConnection::connect(), cmlabs::SSLConnection::delayedConnect(), cmlabs::TCPConnection::delayedConnect(), NetworkConnection(), and ~NetworkConnection().
|
protected |
Definition at line 616 of file NetworkConnections.h.
Referenced by getConnectionType(), isConnected(), cmlabs::SSLConnection::isConnected(), NetworkConnection(), readIntoBuffer(), cmlabs::SSLConnection::SSLConnection(), cmlabs::TCPConnection::TCPConnection(), and cmlabs::UDPConnection::UDPConnection().