Hi, i'm having the same problem here... I have to send a xml file from a server and receive 16 bin files for answer..
I know how to send string and etc.. and tried to use sendfile() to send at least the xml file.. but it didn't work out... here's the code to send
/*part of my client program*/
FILE *fil = fopen("test.xml","r");
sendfile(s1, fil, NULL, 255);
and here is what I receive in server
FILE *f;
rval = recv(s0, f, NULL, 255) ;
while (!feof(f)) {
fscanf (f, "%s", msg) ;
printf("Teste: %s \n",msg);
}
hope you can hel me whit ANYTHING!
thanks anyway.