winss
|
An outbound pipe client. More...
#include <pipe_client.hpp>
Public Member Functions | |
OutboundPipeClientTmpl (const PipeClientConfig &config) | |
Creates an outbound pipe client with the given config. More... | |
OutboundPipeClientTmpl (const OutboundPipeClientTmpl &)=delete | |
No copy. More... | |
OutboundPipeClientTmpl (OutboundPipeClientTmpl &&)=delete | |
No move. More... | |
virtual bool | Send (const std::vector< char > &data) |
Sends the given list of bytes to the pipe server. More... | |
OutboundPipeClientTmpl & | operator= (const OutboundPipeClientTmpl &)=delete |
No copy. More... | |
OutboundPipeClientTmpl & | operator= (OutboundPipeClientTmpl &&)=delete |
No move. More... | |
![]() | |
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< PipeClientSendListener > 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... | |
Additional Inherited Members | |
![]() | |
void | Triggered (const winss::HandleWrapper &handle) |
Event handler for the pipe client. More... | |
void | TellAll (const std::function< bool(PipeClientSendListener &)> &func) |
Call a function against all listeners. More... | |
![]() | |
bool | stopping |
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< PipeClientSendListener > > | listeners |
Listeners for the pipe client. More... | |
An outbound pipe client.
TInstance | The named pipe instance implementation. |
|
inlineexplicit |
Creates an outbound pipe client with the given config.
config | The pipe client confog. |
|
delete |
No copy.
|
delete |
No move.
|
delete |
No copy.
|
delete |
No move.
|
inlinevirtual |
Sends the given list of bytes to the pipe server.
If the client is in the process of sending data then it will be queued until it is free to write.