private void sendCommandToServer(Signal signal) { try { socket.Send(Common.SignalToBuffer(signal)); } catch (IOException ioe) { writeMessage(" ERROR sending: " + ioe.Message); } }
private void sendCommandToClient(Signal signal) { try { socket.Send(Common.SignalToBuffer(signal)); } catch (IOException ioe) { Console.WriteLine(handle + " ERROR sending: " + ioe.Message); close(); } }