Swoole\Event::setModify event listener callbacks and mask 説明
public static bool Swoole\Event::set(
mixed $sock,callable $read_callback,callable $write_callback = ?,int $flags = ?) Modifies the event listener callbacks and mask for the given file descriptor.
警告
Swoole\Event::set replaces callbacks but does not free them. Specifying null for callbacks (e.g., read_callback/write_callback) preserves the existing callbacks instead of clearing them. 警告
Listening for SWOOLE_EVENT_READ without a read_callback (or SWOOLE_EVENT_WRITE without a write_callback) will cause the operation to fail and return false. パラメータ
戻り値
成功した場合に |