Pool.php 927 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. namespace Swoole\Process;
  3. class Pool
  4. {
  5. public $master_pid = -1;
  6. public $workers;
  7. public function __construct($worker_num, $ipc_type = null, $msgqueue_key = null, $enable_coroutine = null)
  8. {
  9. }
  10. public function __destruct()
  11. {
  12. }
  13. /**
  14. * @return mixed
  15. */
  16. public function set(array $settings)
  17. {
  18. }
  19. /**
  20. * @return mixed
  21. */
  22. public function on($event_name, callable $callback)
  23. {
  24. }
  25. /**
  26. * @return mixed
  27. */
  28. public function getProcess($worker_id = null)
  29. {
  30. }
  31. /**
  32. * @return mixed
  33. */
  34. public function listen($host, $port = null, $backlog = null)
  35. {
  36. }
  37. /**
  38. * @return mixed
  39. */
  40. public function write($data)
  41. {
  42. }
  43. /**
  44. * @return mixed
  45. */
  46. public function start()
  47. {
  48. }
  49. /**
  50. * @return mixed
  51. */
  52. public function shutdown()
  53. {
  54. }
  55. }