# The Swoole\Event class

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

## はじめに

## クラス概要

Swoole\Event {
/* メソッド */
public static add ( int `$fd` , callable `$read_callback` [, callable `$write_callback` [, string `$events` ]] ) : boolean
public static defer ( mixed `$callback` ) : void
public static del ( string `$fd` ) : boolean
public static exit ( void ) : void
public static set ( int `$fd` [, string `$read_callback` [, string `$write_callback` [, string `$events` ]]] ) : boolean
public static wait ( void ) : void
public static write ( string `$fd` , string `$data` ) : void
}

## 目次

- Swoole\Event::add — Add new callback functions of a socket into the EventLoop.
- Swoole\Event::defer — Add a callback function to the next event loop.
- Swoole\Event::del — Remove all event callback functions of a socket.
- Swoole\Event::exit — Exit the eventloop, only available at client side.
- Swoole\Event::set — Update the event callback functions of a socket.
- Swoole\Event::wait — Description
- Swoole\Event::write — Write data to the socket.