Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swoft-rpc-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
swoft-rpc-server
Commits
328b6fe1
Commit
328b6fe1
authored
Nov 28, 2019
by
王召彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-去掉rpc连接打印
parent
b1265d4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
src/Bootstrap/Listeners/RpcEventListener.php
+1
-3
No files found.
src/Bootstrap/Listeners/RpcEventListener.php
View file @
328b6fe1
...
...
@@ -32,6 +32,7 @@ class RpcEventListener implements ReceiveInterface,ConnectInterface,CloseInterfa
*/
public
function
onReceive
(
Server
$server
,
int
$fd
,
int
$fromId
,
string
$data
)
{
var_dump
(
'rpc-receive-------'
);
/** @var \Swoft\Rpc\Server\ServiceDispatcher $dispatcher */
$dispatcher
=
App
::
getBean
(
'ServiceDispatcher'
);
$dispatcher
->
dispatch
(
$server
,
$fd
,
$fromId
,
$data
);
...
...
@@ -47,7 +48,6 @@ class RpcEventListener implements ReceiveInterface,ConnectInterface,CloseInterfa
*/
public
function
onConnect
(
Server
$server
,
int
$fd
,
int
$from_id
)
{
var_dump
(
'connnect------'
);
}
/**
...
...
@@ -60,6 +60,5 @@ class RpcEventListener implements ReceiveInterface,ConnectInterface,CloseInterfa
*/
public
function
onClose
(
Server
$server
,
int
$fd
,
int
$reactorId
)
{
var_dump
(
'close------'
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment