Problem with socket_recvfrom ?

From: Date: Tue, 06 May 2003 15:18:04 +0000
Subject: Problem with socket_recvfrom ?
Groups: php.general 
Request: Send a blank email to php-general+get-146532@lists.php.net to get a copy of this message
I'm created a UDP client, and I've having a problem with socket_recvfrom. I do need to use this function, can't use socket_read, as it doesn't return the UDP port the data came from. The code below show's my problem code ----- $recv_ret =3D socket_recvfrom($this->_socket, &$buf, 1024 ,0 ,&$connectip,&$connectport); echo "length:" . $recv_ret . "\n"; echo "data:"; var_dump($buf); result------ length:516 data:string(0) "" how can the length be 516 if it's returnning $buf as an empty string? Many Thanks, -- Ian P. Christian :: pookey at pookey.co.uk :: http://pookey.co.uk Pengus Hosting Solutions

« previous php.general (#146532) next »