socket prograaming doubt!
-
i have created a server(tcp socket)...now i want to load a text file of usernames and password into the server...help please! i am doing socket programming for first time
-
i have created a server(tcp socket)...now i want to load a text file of usernames and password into the server...help please! i am doing socket programming for first time
What's the question? For new socket programmers, usually the confusion seems to be in the fact that as far as the socket is concerned, you're passing data bytes, it doesn't care what the data is (integers, text, whatever). So you just have to load some buffers with your data and pass it on, it's up to your server/client to be able to interpret the data correctly. The interface definition (what bytes mean what) is usually referred to as an API (i.e. the rules).