1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-02-02 15:07:36 -05:00

Fix some function comments, sock_write_string() and sock_write may NOT be

called with a non-blocking socket

svn path=/trunk/net/; revision=4845
This commit is contained in:
Michael Smith 2003-05-29 12:18:04 +00:00
parent e4fee57702
commit 9e8e9a5024

View File

@ -293,7 +293,7 @@ int sock_write_bytes(sock_t sock, const void *buff, const size_t len)
/* 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 @@ int sock_write_string(sock_t sock, const char *buff)
/* 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, ...)