예제 #1
0
        public void SendData(ITcpPacket packet)
        {
            if (_transportManager.IsActive)
            {
                _transportManager.SendData(packet);
#if DEBUG
                Logger.Debug("Sent packet : " + packet);
#endif
            }
            else
            {
                throw new IOException("Transport manager is inactive (has no tunnels), cannot send data.");
            }
        }