|
The EventListener classIntroductionRepresents a connection listener. Class synopsis
EventListener
final
class EventListener
{
/* Constants */
const
int
EventListener::OPT_LEAVE_SOCKETS_BLOCKING = 1;
const
int
EventListener::OPT_CLOSE_ON_FREE = 2;
const
int
EventListener::OPT_CLOSE_ON_EXEC = 4;
const
int
EventListener::OPT_REUSEABLE = 8;
const
int
EventListener::OPT_THREADSAFE = 16;
/* Properties */
public
readonly
int
$fd;
/* Methods */
public
__construct(
EventBase $base
,callable $cb
,mixed $data
,int $flags
,int $backlog
,mixed $target
) public
bool disable()
public
bool enable()
public
void getBase()
public
static
bool getSocketName(
string
&$address
,
mixed
&$port
= ?)public
void setCallback(
callable
$cb
,
mixed
$arg
= null
)public
void setErrorCallback(
string
}$cb
)Properties
Predefined Constants
|