<< Previous | Index | Next >>

sock_flushnext


void sock_flushnext( tcp_Socket *s );

Description

Writing to TCP sockets does not guarantee that the data are actually transmitted or that the remote computer will pass that data to the other client in a timely fashion. Using a flush function will guarantee that DCRTCP.LIB places the data onto the network. No guarantee is made that the remote client will receive that data.

sock_flushnext() is the most efficient of the flush functions. It causes the next function that sends data to the socket to flush, meaning the data will be transmitted immediately.

Several functions imply a flush and do not require an additional flush: sock_puts(), and sometimes sock_putc() (when passed a \n).

Parameters

s

Pointer to a socket.

Return value

None.

Library

TCP.LIB (Prior to DC 7.05, this was DCRTCP.LIB)

See also

sock_write, sock_fastread, sock_read, sockerr, sock_flush, sock_flushnext


TCP/IP Manual
Vol 1
<<Previous | Index | Next>> rabbit.com