class Poco::Net::SocketNotification

Overview

The base class for all notifications generated by the SocketReactor. Moreā€¦

#include <SocketNotification.h>

class SocketNotification: public Poco::Notification
{
public:
    // construction

    SocketNotification(SocketReactor* pReactor);

    // methods

    SocketReactor&
    source() const;

    Socket
    socket() const;
};

// direct descendants

class ErrorNotification;
class IdleNotification;
class ReadableNotification;
class ShutdownNotification;
class TimeoutNotification;
class WritableNotification;

Inherited Members

public:
    // typedefs

    typedef AutoPtr<Notification> Ptr;

    // methods

    void
    duplicate() const;

    void
    release() const;

    int
    referenceCount() const;

    virtual
    std::string
    name() const;

Detailed Documentation

The base class for all notifications generated by the SocketReactor.

Construction

SocketNotification(SocketReactor* pReactor)

Creates the SocketNotification for the given SocketReactor.

Methods

SocketReactor&
source() const

Returns the SocketReactor that generated the notification.

Socket
socket() const

Returns the socket that caused the notification.