Ejemplo n.º 1
0
        public void Init()
        {
            lock (m_clientSync)
            {
                if (m_client != null)
                {
                    throw new Exception("client already initialized");
                }

                m_client = OpenVPNClient.Create(ref m_clientInterface);
                if (m_client == null)
                {
                    throw new Exception("client creation failed");
                }
            }
        }