How can I fflush a socket?
If you're communicating through the socket using stdio, just use fflush().Quote:>How can I fflush a socket?
But what I think you're really looking for is the TCP_NODELAY socket
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
1. fflush, gcc
I have this C program (an assignment for my CS class) which prompts
the user for information with printf and reads data with scanf. The
program would act as if some of the scanf's weren't even there. So I
put in a bunch of fflush(stdin) statements in the appropriate
places. This still did not fix the problem. Note; I'm using Slackware 3.2.
However, the same code when compiled on a DOS machine with Borland C works fine
(unmodified). It also compiles and works great on a unix machine at
school. I've had problems with the fflush(stdin) not working as it
should on my Linux box before.
Does anyone know about why this could be happening?
10. fflush C
13. SEGV in fflush