SocketInterface
+ Inheritance diagram for SocketInterface:

Description

Instance has an underlying socket resource.

Public Properties

const CH_EXCEPT = 2
 Out-of-band channel. More...
 
const CH_READ = 0
 Read channel. More...
 
const CH_WRITE = 1
 Write channel. More...
 

Public Methods

int getId ()
 Returns the underlying socket resource as an integer. More...
 
resource getResource ()
 Returns the underlying socket resource. More...
 
bool isOpen ()
 Whether the underlying resource is usable. More...
 

Properties

◆ CH_EXCEPT

const CH_EXCEPT = 2

Out-of-band channel.

◆ CH_READ

const CH_READ = 0

Read channel.

◆ CH_WRITE

const CH_WRITE = 1

Write channel.

Methods

◆ getId()

int getId ( )

Returns the underlying socket resource as an integer.

Returns
int

Implemented in AbstractSocket.

◆ getResource()

resource getResource ( )

Returns the underlying socket resource.

Returns
resource

Implemented in AbstractSocket.

◆ isOpen()

bool isOpen ( )

Whether the underlying resource is usable.

Returns
bool

Implemented in AbstractSocket.