SignalToBuffer() public static method

Convert the signal to a byte array
public static SignalToBuffer ( Signal signal ) : byte[]
signal Signal
return byte[]
Ejemplo n.º 1
0
 private void sendCommandToServer(Signal signal)
 {
     try {
         socket.Send(Common.SignalToBuffer(signal));
     }
     catch (IOException ioe) {
         writeMessage(" ERROR sending: " + ioe.Message);
     }
 }
Ejemplo n.º 2
0
 private void sendCommandToClient(Signal signal)
 {
     try {
         socket.Send(Common.SignalToBuffer(signal));
     }
     catch (IOException ioe) {
         Console.WriteLine(handle + " ERROR sending: " + ioe.Message);
         close();
     }
 }