private void OnStatusMessage(object sender, StatusMessageArgs msg) { if (msg.Status == NetworkHelper.NetConnectionStatus.Connected) { var rspMsg = new QueryConnectMessage(); server.SendMessage(rspMsg, msg.Connection); } }
private void OnStatusMessage(object sender, StatusMessageArgs msg) { if (msg.Status == NetConnectionStatus.Connected) { var rspMsg = new QueryConnectMessage(); client.SendMessage(rspMsg); } }
private void OnStatusMessage(object sender, DataMessageArgs msg) { var status = (NetConnectionStatus)msg.Input.ReadByte(); string reason = msg.Input.ReadString(); var queryMsg = new QueryConnectMessage(); server.SendMessage(queryMsg, msg.Connection); }