winss
Public Member Functions | List of all members
winss::OutboundPipeServerTmpl< TPipeInstance > Class Template Reference

An outbound pipe server. More...

#include <pipe_server.hpp>

Inheritance diagram for winss::OutboundPipeServerTmpl< TPipeInstance >:
Inheritance graph
[legend]
Collaboration diagram for winss::OutboundPipeServerTmpl< TPipeInstance >:
Collaboration graph
[legend]

Public Member Functions

 OutboundPipeServerTmpl (const PipeServerConfig &config)
 
 OutboundPipeServerTmpl (const OutboundPipeServerTmpl &)=delete
 No copy. More...
 
 OutboundPipeServerTmpl (OutboundPipeServerTmpl &&)=delete
 No move. More...
 
virtual bool Send (const std::vector< char > &data)
 Send the given data to all instances. More...
 
OutboundPipeServerTmploperator= (const OutboundPipeServerTmpl &)=delete
 No copy. More...
 
OutboundPipeServerTmploperator= (OutboundPipeServerTmpl &&)=delete
 No move. More...
 
- Public Member Functions inherited from winss::PipeServer< TPipeInstance >
 PipeServer (const PipeServerConfig &config)
 Create a new pipe instance with the given config. More...
 
 PipeServer (const PipeServer &)=delete
 No copy. More...
 
 PipeServer (PipeServer &&)=delete
 No move. More...
 
virtual bool IsAccepting () const
 Gets if the pipe server is accepting a new connection. More...
 
virtual bool IsStopping () const
 Gets if the pipe server is stopping. More...
 
virtual size_t InstanceCount () const
 Gets the current instance count. More...
 
PipeServeroperator= (const PipeServer &)=delete
 No copy. More...
 
PipeServeroperator= (PipeServer &&)=delete
 No move. More...
 
virtual ~PipeServer ()
 Disconnect all clients and close all connections. More...
 

Additional Inherited Members

- Protected Member Functions inherited from winss::PipeServer< TPipeInstance >
void StartClient ()
 Open a new named pipe for a new client to connect to. More...
 
void Stop ()
 Stop the pipe server. More...
 
void Triggered (const winss::HandleWrapper &handle)
 The event handler for the pipe server. More...
 
- Protected Attributes inherited from winss::PipeServer< TPipeInstance >
bool stopping = false
 Flag if the server is stopping. More...
 
bool open = false
 Flag if the server is open for connections. More...
 
std::map< winss::HandleWrapper, TPipeInstance > instances
 A mapping of handles to instances. More...
 
winss::NotOwningPtr< winss::WaitMultiplexermultiplexer
 The event multiplexer for the named pipe server. More...
 
winss::PipeName pipe_name
 The name of the pipe. More...
 

Detailed Description

template<typename TPipeInstance>
class winss::OutboundPipeServerTmpl< TPipeInstance >

An outbound pipe server.

Template Parameters
TPipeInstanceThe named pipe instance implementation.

Constructor & Destructor Documentation

template<typename TPipeInstance >
winss::OutboundPipeServerTmpl< TPipeInstance >::OutboundPipeServerTmpl ( const PipeServerConfig config)
inlineexplicit
template<typename TPipeInstance >
winss::OutboundPipeServerTmpl< TPipeInstance >::OutboundPipeServerTmpl ( const OutboundPipeServerTmpl< TPipeInstance > &  )
delete

No copy.

template<typename TPipeInstance >
winss::OutboundPipeServerTmpl< TPipeInstance >::OutboundPipeServerTmpl ( OutboundPipeServerTmpl< TPipeInstance > &&  )
delete

No move.

Member Function Documentation

template<typename TPipeInstance >
OutboundPipeServerTmpl& winss::OutboundPipeServerTmpl< TPipeInstance >::operator= ( const OutboundPipeServerTmpl< TPipeInstance > &  )
delete

No copy.

template<typename TPipeInstance >
OutboundPipeServerTmpl& winss::OutboundPipeServerTmpl< TPipeInstance >::operator= ( OutboundPipeServerTmpl< TPipeInstance > &&  )
delete

No move.

template<typename TPipeInstance >
virtual bool winss::OutboundPipeServerTmpl< TPipeInstance >::Send ( const std::vector< char > &  data)
inlinevirtual

Send the given data to all instances.

Parameters
dataThe data to send.

The documentation for this class was generated from the following file: