Rechercher une fonction PHP

The Swoole\Server class

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

Introduction

PHP: Swoole\Server - Manual Home of Manuel PHP  Contents Haut

Class synopsis

Swoole\Server {
/* Methods */
public addlistener ( string $host , integer $port , string $socket_type ) : void
public addProcess ( swoole_process $process ) : boolean
public after ( integer $after_time_ms , callable $callback [, string $param ] ) : ReturnType
public bind ( integer $fd , integer $uid ) : boolean
public clearTimer ( integer $timer_id ) : void
swoole_timer_clear ( integer $timer_id ) : void
public close ( integer $fd [, boolean $reset ] ) : boolean
public confirm ( integer $fd ) : boolean
public connection_info ( integer $fd [, integer $reactor_id ] ) : array
public connection_list ( integer $start_fd [, integer $pagesize ] ) : array
public defer ( callable $callback ) : void
public Swoole\Server\Port::__destruct ( void ) : void
public Swoole\Server\Port::on ( string $event_name , callable $callback ) : ReturnType
public Swoole\Server\Port::set ( array $settings ) : void
public exist ( integer $fd ) : boolean
public finish ( string $data ) : void
public getClientInfo ( integer $fd [, integer $reactor_id ] ) : ReturnType
public getClientList ( integer $start_fd [, integer $pagesize ] ) : array
public getLastError ( void ) : integer
public heartbeat ( boolean $if_close_connection ) : mixed
public listen ( string $host , integer $port , string $socket_type ) : boolean
public on ( string $event_name , callable $callback ) : void
public pause ( integer $fd ) : void
public protect ( integer $fd [, boolean $is_protected ] ) : void
public reload ( void ) : boolean
public resume ( integer $fd ) : void
public send ( integer $fd , string $data [, integer $reactor_id ] ) : boolean
public sendfile ( integer $fd , string $filename [, integer $offset ] ) : boolean
public sendMessage ( integer $worker_id , string $data ) : boolean
public sendto ( string $ip , integer $port , string $data [, string $server_socket ] ) : boolean
public sendwait ( integer $fd , string $data ) : boolean
public set ( array $settings ) : ReturnType
public shutdown ( void ) : void
public start ( void ) : void
public stats ( void ) : array
public stop ([ integer $worker_id ] ) : boolean
public task ( string $data [, integer $dst_worker_id [, callable $callback ]] ) : mixed
public taskwait ( string $data [, float $timeout [, integer $worker_id ]] ) : void
public taskWaitMulti ( array $tasks [, double $timeout_ms ] ) : void
public tick ( integer $interval_ms , callable $callback ) : void
}

PHP: Swoole\Server - Manual Home of Manuel PHP  Contents Haut

Table of Contents

Find a PHP function

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-class.swoole-server.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : http://php.net

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut