Port.php 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. namespace Swoole\Server;
  3. class Port
  4. {
  5. private $onConnect;
  6. private $onReceive;
  7. private $onClose;
  8. private $onPacket;
  9. private $onBufferFull;
  10. private $onBufferEmpty;
  11. private $onRequest;
  12. private $onHandShake;
  13. private $onOpen;
  14. private $onMessage;
  15. public $host;
  16. public $port = 0;
  17. public $type = 0;
  18. public $sock = -1;
  19. public $setting;
  20. public $connections;
  21. private function __construct()
  22. {
  23. }
  24. public function __destruct()
  25. {
  26. }
  27. /**
  28. * @return mixed
  29. */
  30. public function set(array $settings)
  31. {
  32. }
  33. /**
  34. * @return mixed
  35. */
  36. public function on($event_name, callable $callback)
  37. {
  38. }
  39. /**
  40. * @return mixed
  41. */
  42. public function getCallback($event_name)
  43. {
  44. }
  45. /**
  46. * @return mixed
  47. */
  48. public function getSocket()
  49. {
  50. }
  51. }