netLink C++ 11
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
netLink::MsgPackSocket Class Reference

Socket with MsgPack abstraction layer. More...

#include <MsgPackSocket.h>

Inheritance diagram for netLink::MsgPackSocket:
netLink::Socket

Public Member Functions

MsgPackSocketoperator<< (std::unique_ptr< MsgPack::Element > element)
 

Public Attributes

std::queue< std::unique_ptr< MsgPack::Element > > queue
 Internal queue of elements to be serialized and sent.
 
MsgPack::Serializer serializer
 Internal MsgPack serializer.
 
MsgPack::Deserializer deserializer
 Internal MsgPack deserializer.
 

Protected Member Functions

std::shared_ptr< SocketSocketFactory ()
 Generates new sockets for client connections of a server.
 

Friends

class SocketManager
 

Additional Inherited Members

 Defines the version of IP. More...
 Defines the nature of a socket. More...
 Defines the send status of a socket. More...

Detailed Description

Socket with MsgPack abstraction layer.

Member Function Documentation

◆ operator<<()

MsgPackSocket & netLink::MsgPackSocket::operator<< ( std::unique_ptr< MsgPack::Element element)
inline

Pushes one MsgPack::Element in the queue.

Parameters
elementpointer containing the element

◆ SocketFactory()

std::shared_ptr< Socket > netLink::MsgPackSocket::SocketFactory ( )
inlineprotectedvirtual

Generates new sockets for client connections of a server.

Reimplemented from netLink::Socket.


The documentation for this class was generated from the following file: