示例#1
0
        public StompServer(int port)
        {
            _actionMap = new Dictionary <string, Action <StompServerClient, StompMessage> >();
            _clients   = new HashSet <StompServerClient>();
            _paths     = new Dictionary <string, StompPath>();
            _listener  = new StompListener(port, StompConfiguration.ListenBacklog);

            InitEvents();
            InitActionMap();
        }
示例#2
0
        public StompServer(int port)
        {
            _actionMap = new Dictionary<string, Action<StompServerClient, StompMessage>>();
            _clients = new HashSet<StompServerClient>();
            _paths = new Dictionary<string, StompPath>();
            _listener = new StompListener(port, StompConfiguration.ListenBacklog);

            InitEvents();
            InitActionMap();
        }