|
OXY-SYNC-CONTAINER 1.0
OXY-SYNC-CONTAINER Library Documentation
|
Interface for connection operations, including opening pipes and sockets. More...
#include <services.hpp>
Public Member Functions | |
| virtual ProtocolPtr | get_protocol () const =0 |
| Get the protocol associated with the connection. | |
| virtual void | open_pipe (const std::string &pipeName)=0 |
| Open a pipe connection with the specified pipe name. | |
| virtual void | open_socket (const std::string &hostName, int port, bool ssl=true)=0 |
| Open a socket connection with the specified host name and port. | |
Interface for connection operations, including opening pipes and sockets.
This abstract class defines the interface for connection operations in the sync container library. Implementations of this interface must provide methods to open pipes and sockets, as well as retrieve the associated protocol for communication.
|
pure virtual |
Get the protocol associated with the connection.
|
pure virtual |
Open a socket connection with the specified host name and port.
| hostName | The name of the host to connect to. |
| port | The port number to connect to. |
| ssl | Whether to use SSL for the connection (default is true). |