Exemplo n.º 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();
        }
Exemplo n.º 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();
        }