note 97325 deleted from function.socket-recvfrom by googleguy

From: Date: Wed, 24 Oct 2012 13:37:56 +0000
Subject: note 97325 deleted from function.socket-recvfrom by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191518@lists.php.net to get a copy of this message
Note Submitter: rmayo100 at yahoo dot com ---- The example doesn't match the format described at the top of the page. It appears to me that to use this command to receive UDP data, I need to format my calling parameter as follows: int socket_recvfrom ( resource $socket, // Created this with socket_create string &$buf, // This is a pointer!! int $len, // I know the amount of data int $flags, // I know the flags I want string &$name, // This is ALSO a pointer! int &$port // This is ALSO a pointer, TOO!! ); The example doesn't use any pointers, just values, and I didn't think socket_bind was necessary for UDP sockets. At least, it isn't in C. Anybody got a example that does work?? (Because this doesn't see to so far.) If I do stumble on a combination of settings that works, I'll post it -- but this doesn't seem to be the most active page on PHP.net.... R.

« previous php.notes (#191518) next »