public void SendSelectMachine(string machineName) { MemoryByteStream bs = new MemoryByteStream(); bs.Write(_idSelectMachine); Serializer.SelectMachineToBytes(bs, machineName); SendMessage(bs.AsBytes()); }
public void SendCoreAction(CoreAction coreAction) { MemoryByteStream bs = new MemoryByteStream(); bs.Write(_idCoreAction); Serializer.CoreActionToBytes(bs, coreAction); SendMessage(bs.AsBytes()); }
public void SendCoreRequest(CoreRequest coreRequest) { MemoryByteStream bs = new MemoryByteStream(); bs.Write(_idCoreRequest); Serializer.CoreRequestToBytes(bs, coreRequest); SendMessage(bs.AsBytes()); }
public void SendName(string name) { MemoryByteStream bs = new MemoryByteStream(); bs.Write(_idName); bs.Write(name); SendMessage(bs.AsBytes()); }
public void SendAvailableMachines(IEnumerable <string> availableMachines) { MemoryByteStream bs = new MemoryByteStream(); bs.Write(_idAvailableMachines); Serializer.AvailableMachinesToBytes(bs, availableMachines); SendMessage(bs.AsBytes()); }
public void SendPing(bool response, UInt64 id) { MemoryByteStream bs = new MemoryByteStream(); bs.Write(_idPing); bs.Write(response); bs.Write(id); SendMessage(bs.AsBytes()); }