|
winss
|
Base named pipe client. More...
#include <pipe_client.hpp>

Public Member Functions | |
| PipeClient (const PipeClientConfig &config) | |
| Creates a pipe client with the given config. More... | |
| PipeClient (const PipeClient &)=delete | |
| No copy. More... | |
| PipeClient (PipeClient &&)=delete | |
| No move. More... | |
| virtual void | AddListener (winss::NotOwningPtr< TListener > listener) |
| Add a listener to the client. More... | |
| virtual bool | IsStopping () const |
| Gets if the pipe client is stopping. More... | |
| virtual void | Connect () |
| Start the connection process to the pipe server. More... | |
| virtual void | Stop () |
| Stop the pipe client. More... | |
| PipeClient & | operator= (const PipeClient &)=delete |
| No copy. More... | |
| PipeClient & | operator= (PipeClient &&)=delete |
| No move. More... | |
| virtual | ~PipeClient () |
| Close the pipe client and notify listeners. More... | |
Protected Member Functions | |
| virtual void | Triggered () |
| Called when an event is triggered. More... | |
| virtual void | Connected () |
| Called when the client is connected. More... | |
| void | TellAll (const std::function< bool(TListener &)> &func) |
| Call a function against all listeners. More... | |
| void | Triggered (const winss::HandleWrapper &handle) |
| Event handler for the pipe client. More... | |
Protected Attributes | |
| bool | stopping = false |
| TInstance | instance |
| Marked if stopping the client. More... | |
| winss::PipeName | pipe_name |
| The pipe instance. More... | |
| winss::NotOwningPtr< winss::WaitMultiplexer > | multiplexer |
| The event multiplexer for the pipe client. More... | |
| std::vector< winss::NotOwningPtr< TListener > > | listeners |
| Listeners for the pipe client. More... | |
Base named pipe client.
This class should be specialized as a inbound or outbound pipe client.
| TInstance | The named pipe instance implementation. |
| TListener | The type of pipe listener. |
|
inlineexplicit |
Creates a pipe client with the given config.
| config | The pipe client confog. |
|
delete |
No copy.
|
delete |
No move.
|
inlinevirtual |
Close the pipe client and notify listeners.
|
inlinevirtual |
Add a listener to the client.
| listener | The pipe client listener. |
Referenced by winss::InboundControlItem::InboundControlItem(), and winss::OutboundControlItem::OutboundControlItem().
|
inlinevirtual |
Start the connection process to the pipe server.
|
inlineprotectedvirtual |
Called when the client is connected.
|
inlinevirtual |
Gets if the pipe client is stopping.
|
delete |
No copy.
|
delete |
No move.
|
inlinevirtual |
Stop the pipe client.
|
inlineprotected |
Call a function against all listeners.
| func | The function to invoke against all listeners. |
|
inlineprotectedvirtual |
Called when an event is triggered.
|
inlineprotected |
Event handler for the pipe client.
| handle | The handle which triggered the event. |
|
protected |
Marked if stopping the client.
|
protected |
Listeners for the pipe client.
|
protected |
The event multiplexer for the pipe client.
|
protected |
The pipe instance.
|
protected |
1.8.11