26 lines
319 B
PHP
26 lines
319 B
PHP
<?php
|
|
|
|
namespace Server\SInterface;
|
|
|
|
use Swoole\Server;
|
|
|
|
|
|
/**
|
|
*
|
|
*/
|
|
interface OnReceiveInterface
|
|
{
|
|
|
|
|
|
/**
|
|
* @param Server $server
|
|
* @param int $fd
|
|
* @param int $reactor_id
|
|
* @param string $data
|
|
* @return void
|
|
*/
|
|
public function onReceive(Server $server, int $fd, int $reactor_id, string $data): void;
|
|
|
|
|
|
}
|