简体   繁体   中英

Java proxy server keep client connection alive while switching servers

I am trying to create a proxy server for minecraft that would allow the user to switch servers without relogging. What i would need to be able to do is to create a server that handles the incoming connections from the client and forward them to the appropriate server, which i have done. My question is how do you change connection to the server while still keeping the client connection alive so it dosent disconnect.

you will need to send the player a 0x09 (respawn) packet to the client to reload the world and send the server some packets (0x02,0x01) to log the client in and falsify 0x0a (player update) and 0x00 (keep alive) packets to be sent to the backrounded servers

see: http://wiki.vg for more info

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM