The EventListener class
(PECL event >= 1.5.0)
Введение
Represents a connection listener.
Обзор классов
$base
,
callable
$cb
,
mixed
$data
,
int
$flags
,
int
$backlog
,
mixed
$target
)Свойства
- fd
-
Numeric file descriptor of the underlying socket. (Added in event-1.6.0 .)
Предопределенные константы
-
EventListener::OPT_LEAVE_SOCKETS_BLOCKING
-
By default Libevent turns underlying file descriptors, or sockets, to non-blocking mode. This flag tells to leave them non-blocking.
-
EventListener::OPT_CLOSE_ON_FREE
-
If this option is set, the connection listener closes its underlying socket when the EventListener object is freed.
-
EventListener::OPT_CLOSE_ON_EXEC
-
If this option is set, the connection listener sets the close-on-exec flag on the underlying listener socket. See platform documentation for fcntl and
FD_CLOEXEC
for more information. -
EventListener::OPT_REUSEABLE
-
By default on some platforms, once a listener socket is closed, no other socket can bind to the same port until a while has passed. Setting this option makes Libevent mark the socket as reusable, so that once it is closed, another socket can be opened to listen on the same port.
-
EventListener::OPT_THREADSAFE
-
Allocate locks for the listener, so that it’s safe to use it from multiple threads.
Содержание
- EventListener::__construct — Creates new connection listener associated with an event base
- EventListener::disable — Disables an event connect listener object
- EventListener::enable — Enables an event connect listener object
- EventListener::getBase — Returns event base associated with the event listener
- EventListener::getSocketName — Retreives the current address to which the listener's socket is bound.
- EventListener::setCallback — The setCallback purpose
- EventListener::setErrorCallback — Set event listener's error callback
- Введение
- Установка и настройка
- Примеры
- Event flags
- About event persistence
- Event callbacks
- Constructing signal events
- The Event class
- The EventBase class
- The EventBuffer class
- The EventBufferEvent class
- About buffer event callbacks
- The EventConfig class
- The EventDnsBase class
- The EventHttp class
- The EventHttpConnection class
- The EventHttpRequest class
- The EventListener class
- The EventSslContext class
- The EventUtil class
Коментарии
404 Not Found