Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

soc_flush () (flush) - flush data from output buffer

&pagelevel(3)&pagelevel

#include <sys.socket.h>


Kernighan-Ritchie-C: 
soc_flush(s); 
int s;

ANSI-C:
int soc_flush(int s);


Description

The soc_flush() function is only supported in the AF_INET and AF_INET6 address families.

soc_flush() flushes all the data associated with socket s from the output buffer in the transport system.

Return value

0:

If the buffer was flushed or was empty.

EOF:

If the socket descriptor is invalid or the data transfer to the transport system failed.