7#include "./tcp_listener.h" 
    9namespace AsyncBsdSocketLib
 
   18        std::map<int, std::function<void()>> mListeners;
 
   19        std::map<int, std::function<void()>> mSenders;
 
   20        std::map<int, std::function<void()>> mReceivers;
 
   22        bool tryModifyAsSenderReceiver(
int connectionDescriptor);
 
 
Communication method (i.e., network sockets and named pipes)
Definition communicator.h:10
 
bool TryRemoveReceiver(Communicator *communicator)
Try to remove the receiver from the poller.
 
bool TryRemoveSender(Communicator *communicator)
Try to remove the sender from the poller.
 
bool TryAddSender(Communicator *communicator, std::function< void()> callback)
Try to add a sender to the poller.
 
bool TryAddListener(TcpListener *tcpListener, std::function< void()> callback)
Try to add a TCP listener to the poller.
 
bool TryAddReceiver(Communicator *communicator, std::function< void()> callback)
Try to add a receiver to the poller.
 
bool TryRemoveListener(TcpListener *tcpListener)
Try to remove the TCP listener from the poller.
 
bool TryPoll(int timeout=0) const
Try to perform an explicit polling over all the added communicators.
 
TCP listener (server) to accept a TcpClient.
Definition tcp_listener.h:14