public static void Send(XPloitSocketClient client, byte[] data) { client.Send(new XPloitMsgByteArray() { Data = data }); }
//https://support.microsoft.com/en-us/kb/231866 //public static byte[] GetColorMessage() //{ // return new byte[] // { // 255, 0x1B, (byte)'[', // 38, 2, // 0, 187, 0, // (byte)'m' // }; //} #region Allowed send public static void Send(XPloitSocketClient client, string data) { client.Send(new XPloitMsgString() { Data = data }); }
void client_OnMessage(XPloitSocket sender, XPloitSocketClient cl, IXPloitSocketMsg msg) { // Client receive message cl.Send(new XPloitMsgLogin() { Domain = "?", User = "******", Password = "******", InResponseTo = msg.Id }); }