123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <?php
- namespace Swoole\Async;
- class Client
- {
- const MSG_OOB = 1;
- const MSG_PEEK = 2;
- const MSG_DONTWAIT = 64;
- const MSG_WAITALL = 256;
- const SHUT_RDWR = 2;
- const SHUT_RD = 0;
- const SHUT_WR = 1;
- public $errCode = 0;
- public $sock = -1;
- public $type = 0;
- public $setting = null;
- private $onConnect = null;
- private $onError = null;
- private $onReceive = null;
- private $onClose = null;
- private $onBufferFull = null;
- private $onBufferEmpty = null;
- private $onSSLReady = null;
- public function __construct($type)
- {
- }
- public function __destruct()
- {
- }
- /**
- * @return mixed
- */
- public function set(array $settings)
- {
- }
- /**
- * @return mixed
- */
- public function connect($host, $port = null, $timeout = null, $sock_flag = null)
- {
- }
- /**
- * @return mixed
- */
- public function send($data, $flag = null)
- {
- }
- /**
- * @return mixed
- */
- public function sendfile($filename, $offset = null, $length = null)
- {
- }
- /**
- * @return mixed
- */
- public function sendto($ip, $port, $data)
- {
- }
- /**
- * @return mixed
- */
- public function sleep()
- {
- }
- /**
- * @return mixed
- */
- public function wakeup()
- {
- }
- /**
- * @return mixed
- */
- public function pause()
- {
- }
- /**
- * @return mixed
- */
- public function resume()
- {
- }
- /**
- * @return mixed
- */
- public function shutdown($how)
- {
- }
- /**
- * @return mixed
- */
- public function enableSSL(callable $callback)
- {
- }
- /**
- * @return mixed
- */
- public function getPeerCert()
- {
- }
- /**
- * @return mixed
- */
- public function verifyPeerCert()
- {
- }
- /**
- * @return mixed
- */
- public function isConnected()
- {
- }
- /**
- * @return mixed
- */
- public function getsockname()
- {
- }
- /**
- * @return mixed
- */
- public function getpeername()
- {
- }
- /**
- * @return mixed
- */
- public function close($force = null)
- {
- }
- /**
- * @return mixed
- */
- public function on($event_name, callable $callback)
- {
- }
- /**
- * @return mixed
- */
- public function getSocket()
- {
- }
- }
|