Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:WiFiDronection.SocketConnection"/> class.
 /// </summary>
 /// <param name="raspClose">Raspberry close delegate</param>
 public SocketConnection(RaspberryClose raspClose)
 {
     mRaspberryClose      = raspClose;
     mSocket              = new Socket();
     mConnectionThread    = new Thread(Connect);
     isConnectingFinished = false;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:WiFiDronection.SocketReader"/> class.
 /// </summary>
 /// <param name="inputStream">Input stream of socket connection</param>
 /// <param name="rpiClose">Delegate for closing the socket connection</param>
 public SocketReader(DataInputStream inputStream, RaspberryClose rpiClose)
 {
     mDataInputStream     = inputStream;
     mRaspberryCloseEvent = rpiClose;
     mDroneLogs           = new Dictionary <string, LogData>();
     mDataReaderThread    = new Thread(OnRead);
     isReading            = false;
 }