mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-10-13 04:53:37 -04: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:
parent
71ba9e88d6
commit
09aa3b40db
@ -293,7 +293,7 @@ int sock_write_bytes(sock_t sock, const void *buff, const size_t len)
|
|||||||
/* sock_write_string
|
/* sock_write_string
|
||||||
**
|
**
|
||||||
** writes a string to a socket
|
** 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)
|
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
|
/* sock_write
|
||||||
**
|
**
|
||||||
** write a formatted string to the socket
|
** 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.
|
** will truncate the string if it's greater than 1024 chars.
|
||||||
*/
|
*/
|
||||||
int sock_write(sock_t sock, const char *fmt, ...)
|
int sock_write(sock_t sock, const char *fmt, ...)
|
||||||
|
Loading…
Reference in New Issue
Block a user