The EventUtil class
(PECL event >= 1.5.0)
Introduction
EventUtil is a singleton with supplimentary methods and constants.
Class synopsis
Predefined Constants
EventUtil::AF_INETIPv4 address family
EventUtil::AF_INET6IPv6 address family
EventUtil::AF_UNSPECUnspecified IP address family
EventUtil::SO_DEBUGSocket option. Enable socket debugging. Only allowed for processes with the
CAP_NET_ADMINcapability or an effective user ID of0. (Added in event-1.6.0.)EventUtil::SO_REUSEADDRSocket option. Indicates that the rules used in validating addresses supplied in a
bind(2)call should allow reuse of local addresses. See thesocket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_KEEPALIVESocket option. Enable sending of keep-alive messages on connection-oriented sockets. Expects an integer boolean flag. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_DONTROUTESocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_LINGERSocket option. When enabled, a
close(2)orshutdown(2)will not return until all queued messages for the socket have been successfully sent or the linger timeout has been reached. Otherwise, the call returns immediately and the closing is done in the background. See thesocket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_BROADCASTSocket option. Reports whether transmission of broadcast messages is supported. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_OOBINLINESocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_SNDBUFSocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_RCVBUFSocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_SNDLOWATSocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_RCVLOWATSocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_SNDTIMEOSocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_RCVTIMEOSocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_TYPESocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SO_ERRORSocket option. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SOL_SOCKETSocket option level. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SOL_TCPSocket option level. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::SOL_UDPSocket option level. See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::IPPROTO_IPSee the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::IPPROTO_IPV6See the
socket(7)manual page. (Added in event-1.6.0.)EventUtil::LIBEVENT_VERSION_NUMBERLibevent' version number at the time when Event extension had been compiled with the library.
Table of Contents
- EventUtil::__construct — The abstract constructor
- EventUtil::getLastSocketErrno — Returns the most recent socket error number
- EventUtil::getLastSocketError — Returns the most recent socket error
- EventUtil::getSocketFd — Returns numeric file descriptor of a socket, or stream
- EventUtil::getSocketName — Retreives the current address to which the socket is bound
- EventUtil::setSocketOption — Sets socket options
- EventUtil::sslRandPoll — Generates entropy by means of OpenSSL's RAND_poll()