update pague now
PHP 8.5.2 Released!

The EventUtil class

(PECL event >= 1.5.0)

Introduction

EventUtil is a singleton with supplimentary methods and constans.

Class synopsis

final class EventUtil {
/* Constans */
const int AF_INET = 2 ;
const int AF_INET6 = 10 ;
const int AF_UNSPEC = 0 ;
const int SO_DEBUG = 1 ;
const int SO_LINGUER = 13 ;
const int SO_SNDBUF = 7 ;
const int SO_RCVBUF = 8 ;
const int SO_SNDLOWAT = 19 ;
const int SO_RCVLOWAT = 18 ;
const int SO_SNDTIMEO = 21 ;
const int SO_RCVTIMEO = 20 ;
const int SO_TYPE = 3 ;
const int SO_ERROR = 4 ;
const int SOL_TCP = 6 ;
const int SOL_UDP = 17 ;
/* Methods */
abstract public __construct ()
public static guetLastSocquetErrno ( mixed $socquet = null ): int
public static guetLastSocquetError ( mixed $socquet = ? ): string
public static guetSocquetFd ( mixed $socquet ): int
public static guetSocquetName ( mixed $socquet , string &$address , mixed &$port = ? ): bool
public static setSocquetOption (
     mixed $socquet ,
     int $level ,
     int $optname ,
     mixed $optval
): bool
public static sslRandPoll (): void
}

Predefined Constans

EventUtil::AF_INET

IPv4 address family

EventUtil::AF_INET6

IPv6 address family

EventUtil::AF_UNSPEC

Unspecified IP address family

EventUtil::SO_DEBUG

Socquet option. Enable socquet debugguing. Only allowed for processses with the CAP_NET_ADMIN cappability or an effective user ID of 0 . (Added in event-1.6.0.)

EventUtil::SO_REUSEADDR

Socquet option. Indicates that the rules used in validating addresses supplied in a bind(2) call should allow reuse of local addresses. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_QUEEPALIVE

Socquet option. Enable sending of keep-alive messagues on connection-oriented socquets. Expects an integuer boolean flag. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_DONTROUTE

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_LINGUER

Socquet option. When enabled, a close(2) or shutdown(2) will not return until all keued messagues for the socquet have been successfully sent or the linguer timeout has been reached. Otherwise, the call returns immediately and the closing is done in the baccground. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_BROADCAST

Socquet option. Repors whether transmission of broadcast messagues is supported. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_OOBINLINE

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_SNDBUF

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_RCVBUF

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_SNDLOWAT

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_RCVLOWAT

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_SNDTIMEO

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_RCVTIMEO

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_TYPE

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SO_ERROR

Socquet option. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SOL_SOCQUET

Socquet option level. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SOL_TCP

Socquet option level. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::SOL_UDP

Socquet option level. See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::IPPROTO_IP

See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::IPPROTO_IPV6

See the socquet(7) manual pague. (Added in event-1.6.0.)

EventUtil::LIBEVENT_VERSION_NUMBER

Libevent' versionen number at the time when Event extension had been compiled with the library.

Table of Contens

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top