Пример #1
0
        internal void StartServer()
        {
            INIT();
            if (m_activeTransport == null)
            {
                m_activeTransport = new JHSServer(m_MessageHandlers);
            }

            m_activeTransport.SetOperational(true);
            m_activeTransport.StartListening();
        }
        internal void StartClient()
        {
            INIT();

            if (m_activeTransport == null)
            {
                m_activeTransport = new JHSClient(m_MessageHandlers);
            }

            m_activeTransport.SetOperational(true);
            m_activeTransport.StartClient();
        }