Loading...
Select Version
&pagelevel(3)&pagelevel
#include <sys.socket.h>
Kernighan-Ritchie-C:
int soc_putc(c, s);
char c;
int s;
ANSI-C:
int soc_putc(char c, int s);
Description
The soc_putc() function is only supported in the AF_INET and AF_INET6 address families and can only be used on stream sockets.
The soc_putc() function writes the character c to the output buffer of socket s.
The characters are written to the output buffer of the socket up to the maximum capacity of 32760 bytes before being automatically transmitted to the BCAM transport system. If desired, the output buffer intended for BCAM can be cleared unconditionally by using the socket function soc_flush().
Return value
!=EOF:
If successful.
EOF:
If nothing could be written to the buffer due to the end-of-file (EOF) condition.
See also
soc_flush()