Hello,
When I have a created a socket (sd) connection and opened a file (fd). How can I send over a file? Create a buffer (char buf[BLOCK] ????)and send over block by block or so? And if so, what is most efficient block size?
Cheers!
Hello,
When I have a created a socket (sd) connection and opened a file (fd). How can I send over a file? Create a buffer (char buf[BLOCK] ????)and send over block by block or so? And if so, what is most efficient block size?
Cheers!
Hello,
When I have a created a socket (sd) connection and opened a file (fd). How can I send over a file? Create a buffer (char buf[BLOCK] ????)and send over block by block or so? And if so, what is most efficient block size?Cheers!
Yes send it over be reading blocks of text.
for the buffersize, use const BUFSIZ this should be a good size for the local system
BUFSIZ is a standard variable? I'm not sure how to call/set this. Or do I still have to
#define BUFSIZ ???
?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.