Beispiel #1
0
        protected override void Attach(Endpoint endpoint)
        {
            // currently only when endpoint is supported
            if (m_endpoint != null)
                throw new InvalidOperationException("Only one endpoint is currently supported");

            m_endpoint = endpoint;
        }
Beispiel #2
0
        public void Connect(string address)
        {
            m_context.Enter();

            try
            {
                Endpoint endpoint = new Endpoint(m_context, SocketType, address);
                endpoint.Start();

                Attach(endpoint);
            }
            finally
            {
                m_context.Exit();
            }
        }
Beispiel #3
0
 protected abstract void Detach(Endpoint endpoint);
Beispiel #4
0
 protected override void Detach(Endpoint endpoint)
 {
     m_endpoint = null;
 }
Beispiel #5
0
 protected override void Detach(Endpoint endpoint)
 {
     m_endpoint = null;
 }