Client.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php
  2. namespace Swoole;
  3. class Client
  4. {
  5. public const MSG_OOB = 1;
  6. public const MSG_PEEK = 2;
  7. public const MSG_DONTWAIT = 64;
  8. public const MSG_WAITALL = 256;
  9. public const SHUT_RDWR = 2;
  10. public const SHUT_RD = 0;
  11. public const SHUT_WR = 1;
  12. public $errCode = 0;
  13. public $sock = -1;
  14. public $reuse = false;
  15. public $reuseCount = 0;
  16. public $type = 0;
  17. public $id;
  18. public $setting;
  19. public function __construct($type, $async = null, $id = null)
  20. {
  21. }
  22. public function __destruct()
  23. {
  24. }
  25. /**
  26. * @return mixed
  27. */
  28. public function set(array $settings)
  29. {
  30. }
  31. /**
  32. * @return mixed
  33. */
  34. public function connect($host, $port = null, $timeout = null, $sock_flag = null)
  35. {
  36. }
  37. /**
  38. * @return mixed
  39. */
  40. public function recv($size = null, $flag = null)
  41. {
  42. }
  43. /**
  44. * @return mixed
  45. */
  46. public function send($data, $flag = null)
  47. {
  48. }
  49. /**
  50. * @return mixed
  51. */
  52. public function sendfile($filename, $offset = null, $length = null)
  53. {
  54. }
  55. /**
  56. * @return mixed
  57. */
  58. public function sendto($ip, $port, $data)
  59. {
  60. }
  61. /**
  62. * @return mixed
  63. */
  64. public function shutdown($how)
  65. {
  66. }
  67. /**
  68. * @return mixed
  69. */
  70. public function enableSSL()
  71. {
  72. }
  73. /**
  74. * @return mixed
  75. */
  76. public function getPeerCert()
  77. {
  78. }
  79. /**
  80. * @return mixed
  81. */
  82. public function verifyPeerCert()
  83. {
  84. }
  85. /**
  86. * @return mixed
  87. */
  88. public function isConnected()
  89. {
  90. }
  91. /**
  92. * @return mixed
  93. */
  94. public function getsockname()
  95. {
  96. }
  97. /**
  98. * @return mixed
  99. */
  100. public function getpeername()
  101. {
  102. }
  103. /**
  104. * @return mixed
  105. */
  106. public function close($force = null)
  107. {
  108. }
  109. /**
  110. * @return mixed
  111. */
  112. public function getSocket()
  113. {
  114. }
  115. }