FAForever / java-ice-adapter

A P2P connection proxy for Supreme Commander: Forged Alliance using ICE
MIT License
5 stars 12 forks source link

ICE Adapter accepts only a single RPC Connection #20

Closed HurricanKai closed 5 years ago

HurricanKai commented 5 years ago

I'm not sure if this is intended, there is documentation on how to connect to ICE, so I assumed that I was allowed to connect to the adapter, to poll various information about the Game, and the current state. But it looks like the Code only accepts one RPC Connection, which makes sense, since it can be assumed that this is the one that should manage the connection (as in, if that one is lost, the Game should close), but for some reason others aren't accepted after that, only that first "master" connection is ever accepted. Is this a bug, or intentional?

Geosearchef commented 5 years ago

This is intentional. It could accept more connections and allow them to control the adapter, but I don't see a reason to. It's just for the faf client communicating with the adapter and therefore the adapter communicating with the server.

What do you need this for? What do you want to do? Maybe we can help you with that.

HurricanKai commented 5 years ago

I'm just interested in Experimenting with GPGNet & potentially Ice messages for the sake of it, wanted to lookup how (if) the adapter parses GPGNet messages, then stumbled across the Readme.