Example #1
0
        public void SendMsg_User(Command typeCommand, params string[] sData)
        {
            //Create data to send
            DataSend insSend = new DataSend(typeCommand, sData);

            //Convert to byte
            byte[] byteSend = insSend.CreateDataOriginal().Data;
            //Send
            Send(byteSend, 0, byteSend.Length);
        }
Example #2
0
        public void SendMsg(params byte[] sData)
        {
            //Create data to send
            DataSend insSend = new DataSend(sData);

            //Convert to byte
            byte[] byteSend = insSend.CreateDataOriginal().Data;
            //Send Data
            Send(byteSend, 0, byteSend.Length);
        }
Example #3
0
        public void SendMsg_User(Command typeCommand, string sData)
        {
            //Create data to send
            DataSend insSend = new DataSend();

            insSend.Command     = typeCommand;
            insSend.Data_String = sData;

            //Convert to byte
            byte[] byteSend = insSend.CreateDataOriginal().Data;
            //Send Data
            Send(byteSend, 0, byteSend.Length);
        }