Poco::Net

template < std::size_t S = (1472 + sizeof (UDPMsgSizeT)+ SocketAddress::MAX_ADDRESS_LENGTH)>

class MultiSocketPoller

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 inline

MultiSocketPoller(
    typename UDPHandlerImpl < S >::List & handlers,
    const UDPServerParams & serverParams
);

Creates the MutiSocketPoller.

MultiSocketPoller inline

MultiSocketPoller(
    typename UDPHandlerImpl < S >::List & handlers,
    const Poco::Net::SocketAddress & sa,
    int nSockets = 10,
    Poco::Timespan timeout = 250000
);

Creates the MutiSocketPoller.

Destructor

~MultiSocketPoller inline

~MultiSocketPoller();

Destroys MutiSocketPoller

Member Functions

address inline

Poco::Net::SocketAddress address() const;

Returns the address of the server.

done inline

bool done() const;

poll inline

void poll();

port inline

Poco::UInt16 port() const;

Returns the port the socket is listening on.

stop inline

void stop();