This commit is contained in:
as2252258@163.com
2021-09-24 02:23:24 +08:00
parent b9a1178fbe
commit 3d9bea7fb6
31 changed files with 110 additions and 78 deletions
@@ -8,7 +8,7 @@ use Swoole\Server;
/**
*
*/
interface OnClose
interface OnCloseInterface
{
@@ -19,11 +19,4 @@ interface OnClose
public function onClose(Server $server, int $fd): void;
/**
* @param Server $server
* @param int $fd
*/
public function onDisconnect(Server $server, int $fd): void;
}
@@ -4,7 +4,7 @@ namespace Server\SInterface;
use Swoole\Server;
interface OnConnect
interface OnConnectInterface
{
@@ -0,0 +1,19 @@
<?php
namespace Server\SInterface;
use Swoole\Server;
interface OnDisconnectInterface
{
/**
* @param Server $server
* @param int $fd
*/
public function onDisconnect(Server $server, int $fd): void;
}
@@ -4,7 +4,7 @@ namespace Server\SInterface;
use Swoole\Http\Response;
interface DownloadInterface
interface OnDownloadInterface
{
public function dispatch(Response $response);
@@ -9,7 +9,7 @@ use Swoole\Http\Response;
/**
*
*/
interface OnHandshake
interface OnHandshakeInterface
{
@@ -5,7 +5,7 @@ namespace Server\SInterface;
use Swoole\Server;
use Swoole\WebSocket\Frame;
interface OnMessage
interface OnMessageInterface
{
@@ -4,7 +4,7 @@ namespace Server\SInterface;
use Server\Abstracts\Server;
interface OnPacket
interface OnPacketInterface
{
@@ -5,10 +5,10 @@ namespace Server\SInterface;
/**
* Interface PipeMessage
* Interface OnPipeMessageInterface
* @package Server\SInterface
*/
interface PipeMessage
interface OnPipeMessageInterface
{
/**
@@ -8,10 +8,10 @@ use Swoole\Process;
/**
* Interface CustomProcess
* Interface OnProcessInterface
* @package SInterface
*/
interface CustomProcess
interface OnProcessInterface
{
@@ -8,7 +8,7 @@ use Swoole\Server;
/**
*
*/
interface OnReceive
interface OnReceiveInterface
{
@@ -5,7 +5,7 @@ namespace Server\SInterface;
use Swoole\Http\Request;
use Swoole\Http\Response;
interface OnRequest
interface OnRequestInterface
{
@@ -6,7 +6,7 @@ namespace Server\SInterface;
use Swoole\Server;
interface TaskExecute
interface OnTaskInterface
{
public function execute();