I hopefully have one final question regarding this. Now that I have the secure connection to pass account information back and forth, I want to remove that secure connection afterwards so I can use an unsecure socket for the game packets since none of the data that will be sent will be of any compromising value (I am assuming that using an unsecure socket is much faster to send the data).
Would I be able to open two sockets on the client, one Secure and one non-secure, then when the secure socket authorizes the login, It sends a unique key to the client for the unsecure socket to connect to the server to initialize the unsecure socket?
I am afraid that I may do something that would compromise all the security I just implemented in some way.
UPDATE: What I am going to plan to do is have the client connect with two sockets on two different ports, one secure, one normal. I will compare the IP address of the two incoming sockets and "link" them together on the server. Once the authentications are done, I will stop the secure socket, and only use the normal unsecure socket for the game. If there is any other way to accomplish this I would appreciate any ideas. Again, I searched for many hours about this and found no answer for this. I feel I am missing something simple here but I cant seem to put my finger on it.