|
OXY-SYNC-DIRECTORY 1.0
OXY-SYNC-DIRECTORY Library Documentation
|
Interface for a connection to a Thrift service, supporting both pipe and socket connections. More...
#include <services.hpp>
Public Member Functions | |
| virtual ProtocolPtr | get_protocol () const =0 |
| Retrieves the Thrift protocol associated with the connection. | |
| virtual void | open_pipe (const std::string &pipeName)=0 |
| Opens a connection to a Thrift service using a named pipe. | |
| virtual void | open_socket (const std::string &hostName, int port, bool ssl=true)=0 |
| Opens a connection to a Thrift service using a socket. | |
Interface for a connection to a Thrift service, supporting both pipe and socket connections.
This interface provides methods for opening connections to a Thrift service using either pipes or sockets. It also provides a method to retrieve the associated Thrift protocol for communication. Implementations of this interface should handle the specifics of establishing and managing the connection.
|
pure virtual |
Retrieves the Thrift protocol associated with the connection.
|
pure virtual |
Opens a connection to a Thrift service using a named pipe.
| pipeName | The name of the pipe to connect to |
|
pure virtual |
Opens a connection to a Thrift service using a socket.
| hostName | The name of the host to connect to |
| port | The port number to connect to |
| ssl | Whether to use SSL for the connection |