30011.php 841 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. define('DEVER_DAEMON', true);$_SERVER['DEVER_SERVER'] = 'v2.xinnongbaohe.com';
  3. include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '../index.php');
  4. $ip = '101.201.143.114';
  5. $port = '30011';
  6. $callback = array (
  7. 'start' => 'service/tcp._start',
  8. 'close' => 'service/tcp._close',
  9. 'receive' => 'service/tcp._receive',
  10. 'shutdown' => 'service/tcp._shutdown',
  11. 'product' =>
  12. array (
  13. 'id' => '12',
  14. 'info_id' => '3',
  15. 'key' => '0246441492',
  16. 'tcp' => '101.201.143.114:30011',
  17. 'tcp_id' => '',
  18. 'code' => ' http://pan.baidu.com/share/qrcode?w=150&h=150&url=http%3A%2F%2Fv2.xinnongbaohe.com%2Fweb%2Fapplication%2Fservice%2F%3Fuser.bind%3Fcode%3D0246441492',
  19. 'uid' => '0',
  20. 'type' => '1',
  21. 'state' => '1',
  22. 'cdate' => '1482737529',
  23. 'name' => '',
  24. ),
  25. );
  26. Dever::tcp($port, $ip)->server($callback);