Can anyone tell me exactly what fflush does to a stream? Does it just flush the pending incoming data in the input buffer or does it also force outgoing data to be sent ? Does data sent (with fputs for example) always need a fflush to follow it ? I'm using a listening socket stream. Thanks in advance Trevor