コード例 #1
0
 private void client_StateChanged(object sender, NetSockStateChangedEventArgs e)
 {
     if (e.NewState == SocketState.Connecting)
     {
         diffy_.ConnectClient(lbLog, tbServerX.Text);
     }
 }
コード例 #2
0
ファイル: Server.cs プロジェクト: zls3201/NetSocket
 private void server_StateChanged(object sender, NetSockStateChangedEventArgs e)
 {
     this.Log("State: " + e.PrevState.ToString() + " -> " + e.NewState.ToString());
 }
コード例 #3
0
 private void client_StateChanged(object sender, NetSockStateChangedEventArgs e)
 {
     this.Log("State: " + e.PrevState.ToString() + " -> " + e.NewState.ToString());
     SetState(e.NewState == SocketState.Connected);
 }