Into

Modules

Documentation

classPiiAbstractSocket

#include <PiiAbstractSocket.h>

A superclass for socket interfaces.

Inherited by PiiAbstractInputSocket, PiiAbstractOutputSocket

Description

Due to the fact that QObject doesn't support virtual inheritance, all concrete implementations of this interface also derive from PiiSocket. To avoid dynamic_casts at run-time, this interfaces provides a virtual function, socket(), for performing a cross-cast.

Constructors and destructor

virtual

Public member functions

virtual PiiSocket *
( )  = 0

Returns a pointer to this socket as a PiiSocket.

const PiiSocket *
( )

Returns a pointer to this socket as a const PiiSocket.

Protected member functions

Function details

  • PiiAbstractSocket

    ()
    [protected]
  • virtual ~PiiAbstractSocket

    ()
    [virtual]
  • virtual PiiSocket * socket

    ()
    [pure virtual]

    Returns a pointer to this socket as a PiiSocket.

    This is the preferred way of performing a cross-cast, even if dynamic_cast would work in most cases.

  • const PiiSocket * socket

    ()
    [inline]

    Returns a pointer to this socket as a const PiiSocket.

    This function calls the non-const version.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.