I have a client and a server application that I am using to first of all do an authentication method.

I understand the basics of Calling the GetData and SendData through Winsock. I even wrote a chat program doing that. But, what if I want to authenticate a user in a program via winsock. How would I send these variables across using the SendData Method, and how would they be received by the GetData Method on the server.