private void client_StateChanged(object sender, NetSockStateChangedEventArgs e) { if (e.NewState == SocketState.Connecting) { diffy_.ConnectClient(lbLog, tbServerX.Text); } }
private void server_StateChanged(object sender, NetSockStateChangedEventArgs e) { this.Log("State: " + e.PrevState.ToString() + " -> " + e.NewState.ToString()); }
private void client_StateChanged(object sender, NetSockStateChangedEventArgs e) { this.Log("State: " + e.PrevState.ToString() + " -> " + e.NewState.ToString()); SetState(e.NewState == SocketState.Connected); }