コード例 #1
0
ファイル: SocketTest.cs プロジェクト: zhuyue1314/Xploit
        void s_OnMessage2(XPloitSocket sender, XPloitSocketClient cl, IXPloitSocketMsg msg)
        {
            // Server receive msg
            XPloitMsgString msgS = (XPloitMsgString)msg;

            //XPloitTelnetProtocol.Send(cl, XPloitTelnetProtocol.GetColorMessage());
            //XPloitTelnetProtocol.Send(cl, new byte[] { 255, 247 });
            XPloitTelnetProtocol.Send(cl, "Received: " + msgS.Data + Environment.NewLine);

            //isover = true;
        }
コード例 #2
0
ファイル: SocketTest.cs プロジェクト: zhuyue1314/Xploit
 void s_OnConnect2(XPloitSocket sender, XPloitSocketClient cl)
 {
     //XPloitTelnetProtocol.Send(cl, new byte[] { 255, 247 });
     //XPloitTelnetProtocol.Send(cl, XPloitTelnetProtocol.GetColorMessage());
     XPloitTelnetProtocol.Send(cl, "server to client" + Environment.NewLine);
 }