Esempio n. 1
0
        /// <summary>
        /// Connect to the jabberd, or wait for it to connect to us.
        /// Either way, this call returns immediately.
        /// </summary>
        /// <param name="address">The address to connect to.</param>
        public void Connect(bedrock.net.Address address)
        {
            this.NetworkHost = address.Hostname;
            this.Port        = address.Port;

            Connect();
        }
Esempio n. 2
0
        /// <summary>
        /// Saves the address passed in, and really connects to m_host:m_port.
        /// </summary>
        /// <param name="addr"></param>
        public override void Connect(bedrock.net.Address addr)
        {
            m_remote_addr = addr; // save this till we are ready for it...
            Debug.Assert(m_host != null);
            Debug.Assert(m_port != 0);
            // connect to the proxy.
            Address proxy_addr = new Address(m_host, m_port);

            m_sock.Connect(proxy_addr, m_hostid);
            // we'll end up in OnConnected below.
        }
Esempio n. 3
0
 /// <summary>
 /// Prepare to start accepting inbound requests.  Call RequestAccept() to start the async process.
 /// </summary>
 /// <param name="addr">Address to listen on</param>
 /// <param name="backlog">The Maximum length of the queue of pending connections</param>
 public override void Accept(bedrock.net.Address addr, int backlog)
 {
     m_sock.Accept(addr, backlog);
 }
Esempio n. 4
0
 /// <summary>
 /// Remember that we're in the connecting state, let base connect to proxy, resumes in OnConnect.
 /// </summary>
 /// <param name="addr"></param>
 public override void Connect(bedrock.net.Address addr)
 {
     m_state = States.Connecting;
     base.Connect(addr);
 }