( Sorry, originally posted this in the wrong forum, perhaps it will be better here)
Ok, I am currently writing an application that intercepts a connection from one program, opens a socket from that program to the original connection destination, and then basically takes the packets from the first connection and sends them out the second.
Now, Ive gotten to the point where I can set my realmlist to connect to localhost, then the program connects out to the normal us.logon.blahblahblah.etc. So far so good. I can log in, the login packets go through the programs In-Socket, and out the Out-Socket, login accept is recieved from the server through the Out-Socket, then sent back to the WoW client from the In-Socket. But then the socket closes, and WoW makes a brand new connection! (To the actual realm). Im having a bit of a time figuring out where that connection actually is. SO my question is:
Does anyone that is particularly well-versed with Private Servers know just how a connection to a Realm is established after login is accepted?