This class abstracts Named pipe listener that setups a named pipe handle to listen and receive client connections.
More...
#include <named_pipe_connection.h>
This class abstracts Named pipe listener that setups a named pipe handle to listen and receive client connections.
◆ Named_pipe_listener()
Named_pipe_listener::Named_pipe_listener |
( |
const std::string * |
pipe_name | ) |
|
|
inline |
Constructor for named pipe listener.
- Parameters
-
pipe_name | name for pipe used in CreateNamedPipe function. |
◆ check_and_spawn_admin_connection_handler_thread()
bool Named_pipe_listener::check_and_spawn_admin_connection_handler_thread |
( |
| ) |
const |
|
inline |
Spawn admin connection handler thread if separate thread is required to accept admin connections.
Currently we do not support named pipe admin connections. Hence this method is noop.
TODO: Implement when admin connections via named pipe is to be supported.
- Returns
- false as the method is a NOOP.
◆ close_listener()
void Named_pipe_listener::close_listener |
( |
| ) |
|
◆ listen_for_connection_event()
Channel_info * Named_pipe_listener::listen_for_connection_event |
( |
| ) |
|
The body of the event loop that listen for connection events from clients.
- Return values
-
Channel_info | Channel_info object abstracting the connected client details for processing this connection. |
◆ setup_listener()
bool Named_pipe_listener::setup_listener |
( |
| ) |
|
Set up a listener.
- Return values
-
false | listener listener has been setup successfully to listen for connect events true failure in setting up the listener. |
◆ update_named_pipe_full_access_group()
bool Named_pipe_listener::update_named_pipe_full_access_group |
( |
const char * |
new_group_name | ) |
|
Set the Windows group name whose users have full access to new instances of the named pipe.
- Return values
-
false | access set successfully. true failed to change access. |
◆ h_connected_pipe
HANDLE Named_pipe_listener::h_connected_pipe |
|
private |
◆ m_connect_overlapped
OVERLAPPED Named_pipe_listener::m_connect_overlapped |
|
private |
◆ m_pipe_handle
HANDLE Named_pipe_listener::m_pipe_handle |
|
private |
◆ m_pipe_name
std::string Named_pipe_listener::m_pipe_name |
|
private |
◆ m_pipe_path_name
char Named_pipe_listener::m_pipe_path_name[512] |
|
private |
◆ mp_sa_pipe_security
SECURITY_ATTRIBUTES* Named_pipe_listener::mp_sa_pipe_security |
|
private |
The documentation for this class was generated from the following files: