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; }
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); }