| | |
sendfile not working
![]() |
•
•
Join Date: May 2009
Posts: 3
Reputation:
Solved Threads: 0
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
and here is what I receive in server
hope you can hel me whit ANYTHING!
thanks anyway.
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
C Syntax (Toggle Plain Text)
/*part of my client program*/ FILE *fil = fopen("test.xml","r"); sendfile(s1, fil, NULL, 255);
and here is what I receive in server
C Syntax (Toggle Plain Text)
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.
you havent given much for us to go on here, as far as trying to help you debug your code.
i suspect you need to review the fundamentals of socket programming.
review Beej's Guide, review your code, and try again.
i suspect you need to review the fundamentals of socket programming.
review Beej's Guide, review your code, and try again.
![]() |
Similar Threads
- Flash Player stop working since Ad-aware (Web Browsers)
- Internet Explorer not working. (Web Browsers)
- Flash Player stop working and won't reinstall (Windows NT / 2000 / XP)
- Acer laptop keys not working (Troubleshooting Dead Machines)
- messanger not working. (Web Browsers)
- cd burner not working (Storage)
- Working on new design (DaniWeb Community Feedback)
Other Threads in the C Forum
- Previous Thread: opencv CheckArr question
- Next Thread: decoding auto-generated header #defines
| Thread Tools | Search this Thread |
#include * adobe ansi array asterisks binarysearch centimeter changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc csyntax database directory dynamic execv feet fgets file fork frequency function getlasterror getlogicaldrivestrin givemetehcodez global grade gtkgcurlcompiling gtkwinlinux hacking hardware highest histogram ide include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue number odf opendocumentformat opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing segmentationfault sequential single socket socketprograming standard string systemcall threads turboc unix user voidmain() wab whythiscodecausesegmentationfault windows.h windowsapi






