コード例 #1
0
 private void ServerSocket_Connect(NetworkThread.BufferedSocket sck)
 {
     if (sck.sck != null)
     {
         /* SUCCESS!!! */
         this.ServerSocket = sck;
         this._connected   = true;
         this.IRCSend("NICK " + this.MyNickname);
         this.IRCSend("USER " + this.MyUsername + " * * :" + this.MyRealname);
         this.IRCSend("PROTOCTL NAMESX");
     }
     else
     {
         /* FAILED :( */
         this.ServerPage.MessageInfo("Waah, couldn't connect: " + sck.sckError.ToString());
         return;
     }
 }
コード例 #2
0
ファイル: mcServer.cs プロジェクト: rburchell/obsidian
 private void ServerSocket_Connect(NetworkThread.BufferedSocket sck)
 {
     if (sck.sck != null)
     {
         /* SUCCESS!!! */
         this.ServerSocket = sck;
         this._connected = true;
         this.IRCSend("NICK " + this.MyNickname);
         this.IRCSend("USER " + this.MyUsername + " * * :" + this.MyRealname);
         this.IRCSend("PROTOCTL NAMESX");
     }
     else
     {
         /* FAILED :( */
         this.ServerPage.MessageInfo("Waah, couldn't connect: " + sck.sckError.ToString());
         return;
     }
 }