stevenarella/src/screen
ice_iix 6322cf8b21 Re-ping server on connect to detect protocol version
Previously, the server protocol was detected in the server listing GUI,
and saved for each server in a server_versions.json file. connect_to()
would read this file to get the version to use, an ugly hack/workaround
for threading/intercommunication challenges, and a questionable attempt
at avoiding another round-trip exchange.

Now, the server is re-pinged in connect_to() to get the protocol version
to use. This is a blocking ping so it may somewhat slow down server
connecting, but avoids the race conditions with the server list, and
undesirable intertwining the GUI with the server connection logic.

This hack was present since the original multiprotocol support (#18),
but it was blocking other enhancements, about time to remove it.
2019-05-04 17:21:58 -07:00
..
connecting.rs Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
edit_server.rs Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
login.rs Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
mod.rs Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
server_list.rs Re-ping server on connect to detect protocol version 2019-05-04 17:21:58 -07:00
settings_menu.rs Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00