![](smile.gif)
![](smile.gif)
char buffer[1024];
while( !feof(fp) )
{
size_t num = fread( buffer, 1, sizeof(buffer), fp );
send( sock, buffer, num, 0 );
}
If I had my way, I''d have all of you shot!
quote:
Original post by Daywalker313
Just interested...
Does the code you sent really work?
I mean if the router runs the loop 100 times/second and I have only a 56k modem and can''t receive the data fast enough. Will there be some packages lost if I use TCP or what will happen to it?
send
will block until the other end has enough buffer space to hold the data.If I had my way, I''d have all of you shot!