Sending and receiving data
Hey, I have a question regarding network programming in general. Lets say I want to write a program in C that connects to a server and interacts with that server. How do I know how to communicate with the remote server? I mean sure I can just use a whole lot of send()s and receive()s but I won't be able to react in a way that is intelligent. I will be forced to "guess" where the server is and what it is saying. I don't know quite else how to explain what I mean. I guess that's what protocols and such are for? In short I am just looking for a way to write a program that can intelligently interact with a server, in C.