Query: eventlistener
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
EVENTLISTENER(3) 1 EVENTLISTENER(3) The EventListener classINTRODUCTIONRepresents a connection listener.CLASS SYNOPSISEventListener final EventListener Constants o const integer$EventListener::OPT_LEAVE_SOCKETS_BLOCKING1 o const integer$EventListener::OPT_CLOSE_ON_FREE2 o const integer$EventListener::OPT_CLOSE_ON_EXEC4 o const integer$EventListener::OPT_REUSEABLE8 o const integer$EventListener::OPT_THREADSAFE16 Properties o publicreadonly int$fd Methods o public EventListener::__construct (EventBase $base, callable $cb, mixed $data, int $flags, int $backlog, mixed $target) o public bool EventListener::disable (void ) o public bool EventListener::enable (void ) o public void EventListener::getBase (void ) o publicstatic bool EventListener::getSocketName (string &$address, [mixed &$port]) o public void EventListener::setCallback NULL (callable $cb, [mixed $arg]) o public void EventListener::setErrorCallback (string $cb)PROPERTIESo $fd - Numeric file descriptor of the underlying socket. (Added in event-1.6.0 .)PREDEFINED CONSTANTSo 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. o EventListener::OPT_CLOSE_ON_FREE - If this option is set, the connection listener closes its underlying socket when the EventLis- tener object is freed. o 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. o 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. o EventListener::OPT_THREADSAFE - Allocate locks for the listener, so that it's safe to use it from multiple threads. PHP Documentation Group EVENTLISTENER(3)
Related Man Pages |
---|
reflectionclass(3) - php |
event(3) - php |
intltimezone(3) - php |
reflectionobject(3) - php |
spldoublylinkedlist(3) - php |
Similar Topics in the Unix Linux Community |
---|
ftp port listener |
Port not working |
mv files still in use - space not freed |
How to know the location of the listener? |
oracle process appears to die |