WPILibC++  unspecified
nt::Dispatcher Class Reference
Inheritance diagram for nt::Dispatcher:
Collaboration diagram for nt::Dispatcher:

Public Member Functions

 Dispatcher (IStorage &storage, IConnectionNotifier &notifier, wpi::Logger &logger)
 
void StartServer (StringRef persist_filename, const char *listen_address, unsigned int port)
 
void SetServer (const char *server_name, unsigned int port)
 
void SetServer (ArrayRef< std::pair< StringRef, unsigned int >> servers)
 
void SetServerTeam (unsigned int team, unsigned int port)
 
void SetServerOverride (const char *server_name, unsigned int port)
 
void ClearServerOverride ()
 
- Public Member Functions inherited from nt::DispatcherBase
 DispatcherBase (IStorage &storage, IConnectionNotifier &notifier, wpi::Logger &logger)
 
unsigned int GetNetworkMode () const
 
void StartServer (llvm::StringRef persist_filename, std::unique_ptr< wpi::NetworkAcceptor > acceptor)
 
void StartClient ()
 
void Stop ()
 
void SetUpdateRate (double interval)
 
void SetIdentity (llvm::StringRef name)
 
void Flush ()
 
std::vector< ConnectionInfoGetConnections () const
 
bool IsConnected () const
 
unsigned int AddListener (std::function< void(const ConnectionNotification &event)> callback, bool immediate_notify) const
 
unsigned int AddPolledListener (unsigned int poller_uid, bool immediate_notify) const
 
void SetConnector (Connector connector)
 
void SetConnectorOverride (Connector connector)
 
void ClearConnectorOverride ()
 
bool active () const
 
 DispatcherBase (const DispatcherBase &)=delete
 
DispatcherBaseoperator= (const DispatcherBase &)=delete
 
- Public Member Functions inherited from nt::IDispatcher
 IDispatcher (const IDispatcher &)=delete
 
IDispatcheroperator= (const IDispatcher &)=delete
 

Friends

class DispatcherTest
 

Additional Inherited Members

- Public Types inherited from nt::DispatcherBase
typedef std::function< std::unique_ptr< wpi::NetworkStream >)> Connector
 
- Protected Attributes inherited from nt::DispatcherBase
wpi::Loggerm_logger
 

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