2 Handshake
Albin Corén редактировал(а) эту страницу 2018-10-16 14:10:45 +02:00

During every connection, the MLAPI does a handshake. The handshake serves a few different purposes.

  • It allows for connection approval
  • It allows for versioning. I.E prevent different versions from talking to each ither
  • Encryption keys are created with a diffie hellman key exchange
  • NetworkConfig's are checked to be the same

If the handshake doesn't complete within the Timeout time specified in the NetworkConfig, the connection will be closed. The handshake is 2 or 4 messages long depending on if Encryption is enabled.