To what avail, it’s a mystery. |
Possibly not a mystery - just a waste of time and effort.
The way I 'understand' it from other posts from @OP it goes like this:
1. OP wants to send files (images in fact) using sockets blah blah
2. OP has numerous problems with directories and dirent.h structure blah blah
3. OP has been 'able' to send a file, maybe, blah blah
4. OP gets file size somewhere in this process as zero size blah blah
5. OP knows file is actually bigger than that, megabytes in fact blah blah
6. OP was advised that maybe just sending a bit of text might be better blah blah
7. OP now wants to circumvent that with sending a char array or string blah blah
8. OP has created an ever-deepening hole of misery blah blah
9. OP blah, blah, blah