question about sockets
I'm new to internet programming. I read some tutorials to get myself off the ground. I was wondering whether it's possible for a client to send data to a server using the send() command. I want to send a filename to a server and have the server send it to the client if the server has it.
yes it is possible... but you have to build the request by yourself. There are more simple ways to generate HTTP requests...
Yes you can send using send() or WSASend() but this is raw data. How you interpret the data is up to you and the agreed upon format or protocol of how you communicate from client to server and vice versa. TCP/IP is the base protocol but each app (server/client) still has to know what to expect and when to expect it in order to act correctly.