Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

cvs: phpdoc /en/reference/stream constants.xml /en/reference/stream/functions stream-socket-accept.
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>,

Report this thread to moderator Post Follow-up to this message
Old Post
Nuno Lopes
07-31-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:37 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.