[xiph-cvs] cvs commit: net sock.c

Michael Smith msmith at xiph.org
Thu May 29 05:18:05 PDT 2003



msmith      03/05/29 08:18:04

  Modified:    .        sock.c
  Log:
  Fix some function comments, sock_write_string() and sock_write may NOT be
  called with a non-blocking socket

Revision  Changes    Path
1.22      +2 -2      net/sock.c

Index: sock.c
===================================================================
RCS file: /usr/local/cvsroot/net/sock.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- sock.c	8 Apr 2003 12:09:57 -0000	1.21
+++ sock.c	29 May 2003 12:18:04 -0000	1.22
@@ -293,7 +293,7 @@
 /* sock_write_string
 **
 ** writes a string to a socket
-** this function always blocks even if the socket is nonblocking
+** This function must only be called with a blocking socket.
 */
 int sock_write_string(sock_t sock, const char *buff)
 {
@@ -303,7 +303,7 @@
 /* sock_write
 **
 ** write a formatted string to the socket
-** this function will always block, even if the socket is nonblocking
+** this function must only be called with a blocking socket.
 ** will truncate the string if it's greater than 1024 chars.
 */
 int sock_write(sock_t sock, const char *fmt, ...)

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list