Example #1
0
        public void Open()
        {
            try
            {
                _tcpServer.Port = _port;
                _tcpServer.Open();
                _tcpServer.OnDataAvailable += tcpServer_OnDataAvailable;

                _udpReceiver.Port            = _port;
                _udpReceiver.OnDataReceived += UdpReceiverOnOnDataReceived;
                _udpReceiver.Initialize();
            }
            catch (Exception ex)
            {
                Log.Error(ex, "Error opening connection");
            }
        }