Code Comments
Programming Forum and web based access to our favorite programming groups.nlopess Sat Jul 31 10:41:54 2004 EDT Modified files: /phpdoc/en/reference/stream constants.xml /phpdoc/en/reference/stream/functions stream-socket-accept.xml stream-socket-recvfrom.xml Log: several fixes for UDP thanks Wez http://cvs.php.net/diff.php/phpdoc/... 12&ty=u Index: phpdoc/en/reference/stream/constants.xml diff -u phpdoc/en/reference/stream/constants.xml:1.11 phpdoc/en/reference/st ream/constants.xml:1.12 --- phpdoc/en/reference/stream/constants.xml:1.11 Sat Jul 31 07:48:38 2004 +++ phpdoc/en/reference/stream/constants.xml Sat Jul 31 10:41:54 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <section id="stream.constants"> &reftitle.constants; &extension.constants; @@ -95,7 +95,9 @@ <entry><constant>STREAM_SERVER_LISTEN</constant> *</entry> <entry>Tells a stream created with <function>stream_socket_server</function> and bound using the <constant>STREAM_SERVER_BIND</constant> flag to start - listening on the socket. TCP Server sockets should always include th is flag. + listening on the socket. Connection-orientated transports (such as T CP) + must use this flag, otherwise the server socket will not be enabled. + Using this flag for connect-less transports (such as UDP) is an erro r. </entry> </row> <row> http://cvs.php.net/diff.php/phpdoc/...1.3&r2=1.4&ty=u Index: phpdoc/en/reference/stream/functions/stream-socket-accept.xml diff -u phpdoc/en/reference/stream/functions/stream-socket-accept.xml:1.3 ph pdoc/en/reference/stream/functions/stream-socket-accept.xml:1.4 --- phpdoc/en/reference/stream/functions/stream-socket-accept.xml:1.3 Sat Ju l 31 07:48:38 2004 +++ phpdoc/en/reference/stream/functions/stream-socket-accept.xml Sat Jul 31 10:41:54 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.stream-socket-accept"> <refnamediv> <refname>stream_socket_accept</refname> @@ -31,13 +31,13 @@ <simpara> If the call fails, it will return &false;. </simpara> - <note> + <warning> <para> - This function doens't work with UDP server sockets. Use + Using this function with UDP server sockets is an error. You should u se <function>stream_socket_recvfrom</function> and <function>stream_socket_sendto</function> instead. </para> - </note> + </warning> <para> See also <function>stream_socket_server</function>, <function>stream_socket_get_name</function>, http://cvs.php.net/diff.php/phpdoc/...1.3&r2=1.4&ty=u Index: phpdoc/en/reference/stream/functions/stream-socket-recvfrom.xml diff -u phpdoc/en/reference/stream/functions/stream-socket-recvfrom.xml:1.3 phpdoc/en/reference/stream/functions/stream-socket-recvfrom.xml:1.4 --- phpdoc/en/reference/stream/functions/stream-socket-recvfrom.xml:1.3 Mon Mar 29 18:21:04 2004 +++ phpdoc/en/reference/stream/functions/stream-socket-recvfrom.xml Sat Jul 31 10:41:54 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.stream-socket-recvfrom"> <refnamediv> <refname>stream_socket_recvfrom</refname> @@ -73,6 +73,13 @@ ]]> </programlisting> </example> + <note> + <para> + If a message received is longer than the <parameter>length</parameter > + parameter, excess bytes may be discarded depending on the type of soc ket + the message is received from (such as UDP). + </para> + </note> <para> See also <function>stream_socket_sendto</function>,
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.