TcpConnection
class TcpConnection : public Connection
@brief a class for handling tcp connections
This class serves as the interface for all connections. A connection is only established upon call of the start() function. It is a factory class and thus can be configured using its expected parameters
Functions
| Name | Description |
|---|---|
| start | Starts the connection |
| startAsync | Starts the connection asynchronously providing a slot |
| stop | Closes the connection |
| createChannel | This function creates a "channel" for the given connection. |
Function Details
createChannel
virtual ChannelPointer createChannel()
This function creates a "channel" for the given connection.
Return : Pointer to Channel
start
virtual ChannelPointer start()
Starts the connection
startAsync
virtual int startAsync(const ConnectionHandler& slot)
Starts the connection asynchronously providing a slot
stop
virtual void stop()
Closes the connection