SignalToBuffer() public static method

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