Into

Modules

Documentation

classPiiGenericSocketDescriptor

#include <PiiGenericSocketDescriptor.h>

A generic socket descriptor that can be used with many native socket descriptor types.

Description

It supports at least network sockets (UDP/TCP) and local sockets (unix domain sockets/pipes). More socket descriptors can be added by using the pCustomDescriptor member.

Constructors and destructor

Create an invalid socket descriptor.

(
  • quintptr socketDescriptor
)

Create a new SocketDescriptor with the given native socketDescriptor.

(
  • void * socketDescriptor
)

Create a new SocketDescriptor with the given native socketDescriptor.

(
  • int socketDescriptor
)

Create a new SocketDescriptor with the given native socketDescriptor.

Public member functions

bool

Function details

  • PiiGenericSocketDescriptor

    ()
    [inline]

    Create an invalid socket descriptor.

  • PiiGenericSocketDescriptor

    (
    • quintptr socketDescriptor
    )
    [inline]

    Create a new SocketDescriptor with the given native socketDescriptor.

    This constructor is suitable for use with local sockets.

    See also
  • PiiGenericSocketDescriptor

    (
    • void * socketDescriptor
    )
    [inline]

    Create a new SocketDescriptor with the given native socketDescriptor.

    This constructor is suitable for use with any native socket descriptor.

  • PiiGenericSocketDescriptor

    (
    • int socketDescriptor
    )
    [inline]

    Create a new SocketDescriptor with the given native socketDescriptor.

    This constructor is suitable for use with network sockets.

    See also
  • bool operator==

    [inline]
Notes (0)

Add a note

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