Sending the contents of a file to a client

Posted by Zerobu on Stack Overflow See other posts from Stack Overflow or by Zerobu
Published on 2010-03-29T02:41:55Z Indexed on 2010/03/29 2:43 UTC
Read the original article Hit count: 335

Filed under:
|
|

Hello, I am writing a C++ server side application called quote of the day. I am using the winsock2 library. I want to send the contents of a file back to the client, including newlines by using the send function. The way i tried it doesn't work. How would i go about doing this?

© Stack Overflow or respective owner

Related posts about c++

Related posts about sockets