socket中的stream_socket_sendto和send兩個函數(shù)有什么區(qū)別么,都是發(fā)送data...
protected static function sendUdpAndRecv($address , $data) { $buffer = GatewayProtocol::encode($data); // 非workerman環(huán)境,使用udp發(fā)送數(shù)據(jù) $client = stream_socket_client("udp://$address", $errno, ...