Exemplo n.º 1
0
 void telnetServer_OnOptionNegotiated(TelnetBase Sender, byte OptionCode)
 {
     _Log("Option: " + OptionCode.ToString("X") + " is negotiated successfully.\r\n");
     if (OptionCode == 44)
     {
     }
 }
Exemplo n.º 2
0
 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();
     }
 }
Exemplo n.º 3
0
 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();
     }
 }