示例#1
0
        public static Listener Create(string host, ushort port, ListenerFlag flags)
        {
            var listener = new Listener(host, port, flags);

            Listeners.Add(listener);

            return listener;
        }
示例#2
0
 public Listener(string host, ushort port, ListenerFlag flags)
 {
     Host = host;
     Port = port;
     this.flags = flags;
 }