示例#1
0
        public void SendSelectMachine(string machineName)
        {
            MemoryByteStream bs = new MemoryByteStream();

            bs.Write(_idSelectMachine);
            Serializer.SelectMachineToBytes(bs, machineName);

            SendMessage(bs.AsBytes());
        }
示例#2
0
        public void SendCoreAction(CoreAction coreAction)
        {
            MemoryByteStream bs = new MemoryByteStream();

            bs.Write(_idCoreAction);
            Serializer.CoreActionToBytes(bs, coreAction);

            SendMessage(bs.AsBytes());
        }
示例#3
0
        public void SendCoreRequest(CoreRequest coreRequest)
        {
            MemoryByteStream bs = new MemoryByteStream();

            bs.Write(_idCoreRequest);
            Serializer.CoreRequestToBytes(bs, coreRequest);

            SendMessage(bs.AsBytes());
        }
示例#4
0
        public void SendName(string name)
        {
            MemoryByteStream bs = new MemoryByteStream();

            bs.Write(_idName);
            bs.Write(name);

            SendMessage(bs.AsBytes());
        }
示例#5
0
        public void SendAvailableMachines(IEnumerable <string> availableMachines)
        {
            MemoryByteStream bs = new MemoryByteStream();

            bs.Write(_idAvailableMachines);
            Serializer.AvailableMachinesToBytes(bs, availableMachines);

            SendMessage(bs.AsBytes());
        }
示例#6
0
        public void SendPing(bool response, UInt64 id)
        {
            MemoryByteStream bs = new MemoryByteStream();

            bs.Write(_idPing);
            bs.Write(response);
            bs.Write(id);

            SendMessage(bs.AsBytes());
        }