I have the following
cout << "error opening file" << endl;
while ( !in.eof())
int a = in.gcount();
int total += send (sock,buff,a,NULL);
This is a windows program.
Now this is a simple read function that will read a file and devliver the
output through a socket. The in file is 50011 bytes. When this functions
ends my output is 48875bytes. I seem to be loosing bytes somewhere but cant
figure out where. When I look at the output it ending lines matches the
ending lines on the input, so it looks like I got the entire file. Any
|All times are GMT. The time now is 05:00 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.