服务器端怎么写的?给你返回值了吗?

解决方案 »

  1.   

    已解决,返回值要以 \n结束才能获取   ,
    新的问题还是以上代码  $result = socket_connect($socket, $address, $service_port) or die("could not connect with" . $address);返回 could not connect with $address 最少要20多秒
    能不能不通的话就马上结束或者  设置超时什么的