Skip to content

Commit

Permalink
Added $context->fd
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Sep 27, 2016
1 parent 6d87555 commit ffed45c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Hprose/Swoole/Socket/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function getOnReceive() {
$context = new stdClass();
$context->server = $server;
$context->socket = $socket;
$context->fd = $socket;
$context->fromid = $fromid;
$context->userdata = new stdClass();
$data = substr($bytes, $headerLength, $dataLength);
Expand Down Expand Up @@ -113,6 +114,7 @@ public function socketHandle($server) {
$context = new stdClass();
$context->server = $server;
$context->socket = $socket;
$context->fd = $socket;
$context->fromid = $fromid;
$context->userdata = new stdClass();
try {
Expand All @@ -129,6 +131,7 @@ public function socketHandle($server) {
$context = new stdClass();
$context->server = $server;
$context->socket = $socket;
$context->fd = $socket;
$context->fromid = $fromid;
$context->userdata = new stdClass();
try {
Expand Down

0 comments on commit ffed45c

Please sign in to comment.