Library: Net
Package: UDP
Header: Poco/Net/MultiSocketPoller.h
Description
MultiSocketPoller, as its name indicates, repeatedly polls a set of sockets for readability and/or error. If socket is readable or in error state, the reading/error handling actions are delegated to the reader.
Member Summary
Member Functions: address, done, poll, port, stop
Constructors
MultiSocketPoller
MultiSocketPoller(
typename UDPHandlerImpl < S >::List & handlers,
const UDPServerParams & serverParams
);
Creates the MutiSocketPoller.
MultiSocketPoller
MultiSocketPoller(
typename UDPHandlerImpl < S >::List & handlers,
const Poco::Net::SocketAddress & sa,
int nSockets = 10,
Poco::Timespan timeout = 250000
);
Creates the MutiSocketPoller.
Destructor
~MultiSocketPoller
Destroys MutiSocketPoller
Member Functions
address
Poco::Net::SocketAddress address() const;
Returns the address of the server.
done
bool done() const;
poll
void poll();
port
Poco::UInt16 port() const;
Returns the port the socket is listening on.
stop
void stop();