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; }
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(); } }
protected abstract void Detach(Endpoint endpoint);
protected override void Detach(Endpoint endpoint) { m_endpoint = null; }
protected override void Detach(Endpoint endpoint) { m_endpoint = null; }