Client.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?php
  2. namespace Swoole\Async;
  3. class Client
  4. {
  5. const MSG_OOB = 1;
  6. const MSG_PEEK = 2;
  7. const MSG_DONTWAIT = 64;
  8. const MSG_WAITALL = 256;
  9. const SHUT_RDWR = 2;
  10. const SHUT_RD = 0;
  11. const SHUT_WR = 1;
  12. public $errCode = 0;
  13. public $sock = -1;
  14. public $type = 0;
  15. public $setting = null;
  16. private $onConnect = null;
  17. private $onError = null;
  18. private $onReceive = null;
  19. private $onClose = null;
  20. private $onBufferFull = null;
  21. private $onBufferEmpty = null;
  22. private $onSSLReady = null;
  23. public function __construct($type)
  24. {
  25. }
  26. public function __destruct()
  27. {
  28. }
  29. /**
  30. * @return mixed
  31. */
  32. public function set(array $settings)
  33. {
  34. }
  35. /**
  36. * @return mixed
  37. */
  38. public function connect($host, $port = null, $timeout = null, $sock_flag = null)
  39. {
  40. }
  41. /**
  42. * @return mixed
  43. */
  44. public function send($data, $flag = null)
  45. {
  46. }
  47. /**
  48. * @return mixed
  49. */
  50. public function sendfile($filename, $offset = null, $length = null)
  51. {
  52. }
  53. /**
  54. * @return mixed
  55. */
  56. public function sendto($ip, $port, $data)
  57. {
  58. }
  59. /**
  60. * @return mixed
  61. */
  62. public function sleep()
  63. {
  64. }
  65. /**
  66. * @return mixed
  67. */
  68. public function wakeup()
  69. {
  70. }
  71. /**
  72. * @return mixed
  73. */
  74. public function pause()
  75. {
  76. }
  77. /**
  78. * @return mixed
  79. */
  80. public function resume()
  81. {
  82. }
  83. /**
  84. * @return mixed
  85. */
  86. public function shutdown($how)
  87. {
  88. }
  89. /**
  90. * @return mixed
  91. */
  92. public function enableSSL(callable $callback)
  93. {
  94. }
  95. /**
  96. * @return mixed
  97. */
  98. public function getPeerCert()
  99. {
  100. }
  101. /**
  102. * @return mixed
  103. */
  104. public function verifyPeerCert()
  105. {
  106. }
  107. /**
  108. * @return mixed
  109. */
  110. public function isConnected()
  111. {
  112. }
  113. /**
  114. * @return mixed
  115. */
  116. public function getsockname()
  117. {
  118. }
  119. /**
  120. * @return mixed
  121. */
  122. public function getpeername()
  123. {
  124. }
  125. /**
  126. * @return mixed
  127. */
  128. public function close($force = null)
  129. {
  130. }
  131. /**
  132. * @return mixed
  133. */
  134. public function on($event_name, callable $callback)
  135. {
  136. }
  137. /**
  138. * @return mixed
  139. */
  140. public function getSocket()
  141. {
  142. }
  143. }