Phreak
Regular
Ok... as I've mentioned before in some other threads, a friend of mine and I are trying to create a messaging program completely from scratch. Now, with the suggestions of others, we've decided on using the client/server method as opposed to peer-to-peer. Now, for my question.
We don't just want "anyone" connecting to this port on our server, so we want to develop some type of "handshake". How would one go about setting up a connection so that in order to connect to the server, the client must provide a "connect string" to authenticate the client or the connection is dropped by the server. Such as:
If someone doesn't provide the required information within a certain time period when connected to that port, the server drops the connection.
Thanks.
We don't just want "anyone" connecting to this port on our server, so we want to develop some type of "handshake". How would one go about setting up a connection so that in order to connect to the server, the client must provide a "connect string" to authenticate the client or the connection is dropped by the server. Such as:
If someone doesn't provide the required information within a certain time period when connected to that port, the server drops the connection.
Thanks.