void telnetServer_OnOptionNegotiated(TelnetBase Sender, byte OptionCode) { _Log("Option: " + OptionCode.ToString("X") + " is negotiated successfully.\r\n"); if (OptionCode == 44) { } }
void telnetServer_OnDisconnected(TelnetBase sender) { try { _Log("Closing serial port..."); serialDevice.Close(); _Log("Serial port closed successfully."); } catch (Exception ex) { _LogCritical(ex.Message + ex.StackTrace); Shutdown(); } }
void telnetServer_OnConnected(TelnetBase sender, IPEndPoint RemoteEndPoint) { try { bCrashed = false; _Log("Opening serial port..."); serialDevice.Open(); _Log("Serial port opened successfully."); } catch (Exception ex) { _LogCritical(ex.Message + ex.StackTrace); Shutdown(); } }