Example #1
0
 public static void Send(XPloitSocketClient client, byte[] data)
 {
     client.Send(new XPloitMsgByteArray()
     {
         Data = data
     });
 }
Example #2
0
        //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
            });
        }
Example #3
0
 void client_OnMessage(XPloitSocket sender, XPloitSocketClient cl, IXPloitSocketMsg msg)
 {
     // Client receive message
     cl.Send(new XPloitMsgLogin()
     {
         Domain = "?", User = "******", Password = "******", InResponseTo = msg.Id
     });
 }
Example #4
0
 public static void Send(XPloitSocketClient client, byte[] data) { client.Send(new XPloitMsgByteArray() { Data = data }); }
Example #5
0
        //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 }); }