예제 #1
0
 public void Flush()
 {
     try
     {
         GetErrorCode(WinApi.sio_flush(PortIndex, 2));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
 public void ClearRead()
 {
     try
     {
         GetErrorCode(WinApi.sio_flush(PortIndex, 1));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }