예제 #1
0
        /// <summary>
        /// Starts listening to network requests
        /// </summary>
        public void Start(int backLog)
        {
            // check object state
            if (_disposed)
            {
                throw new ObjectDisposedException(GetType().FullName);
            }

            if (_transport == null)
            {
                ITransport transport = CreateTransport();
                transport.Bind(_url);
                transport.Listen(backLog);
                _transport = transport;
            }
        }
예제 #2
0
 public void Bind(string url)
 {
     _transport.Bind(url);
 }
예제 #3
0
 public void Bind(int port)
 {
     transport.Bind((ushort)port);
 }