-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Demin Yin <[email protected]>
- Loading branch information
Showing
7 changed files
with
115 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Swoole\Async; | ||
|
||
/** | ||
* @since 6.0.0-rc1 | ||
*/ | ||
class Client extends \Swoole\Client | ||
{ | ||
public const MSG_OOB = 1; | ||
|
||
public const MSG_PEEK = 2; | ||
|
||
public const MSG_DONTWAIT = 64; | ||
|
||
public const MSG_WAITALL = 256; | ||
|
||
public const SHUT_RDWR = 2; | ||
|
||
public const SHUT_RD = 0; | ||
|
||
public const SHUT_WR = 1; | ||
|
||
private $onConnect; | ||
|
||
private $onError; | ||
|
||
private $onReceive; | ||
|
||
private $onClose; | ||
|
||
private $onBufferFull; | ||
|
||
private $onBufferEmpty; | ||
|
||
private $onSSLReady; | ||
|
||
public function __construct(int $type) | ||
{ | ||
} | ||
|
||
public function __destruct() | ||
{ | ||
} | ||
|
||
public function connect(string $host, int $port = 0, float $timeout = 0.5, int $sock_flag = 0): bool | ||
{ | ||
} | ||
|
||
public function sleep(): bool | ||
{ | ||
} | ||
|
||
public function wakeup(): bool | ||
{ | ||
} | ||
|
||
public function pause(): bool | ||
{ | ||
} | ||
|
||
public function resume(): bool | ||
{ | ||
} | ||
|
||
public function enableSSL(?callable $onSslReady = null): bool | ||
{ | ||
} | ||
|
||
public function isConnected(): bool | ||
{ | ||
} | ||
|
||
public function close(bool $force = false): bool | ||
{ | ||
} | ||
|
||
public function on(string $host, callable $callback): bool | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters