Пример #1
0
        public TossServer()
        {
            aServer = new WebSocketServer(false, 81, IPAddress.Any)
            {
                OnReceive    = OnReceive,
                OnSend       = OnSend,
                OnConnect    = OnConnect,
                OnDisconnect = OnDisconnect,
                TimeOut      = new TimeSpan(0, 5, 0)
            };

            aServer.Start();

            pmsSrv = new PMSServer();
            pmsSrv.ReqPMSSetEvent += pmsSrv_ReqPMSSetEvent;

            cdrSrv = new CDRecorder();
            cdrSrv.RequestCDREvent += cdrSrv_RequestCDREvent;
        }
Пример #2
0
        public TossServer()
        {
            aServer = new WebSocketServer(false, 81, IPAddress.Any)
            {
                OnReceive = OnReceive,
                OnSend = OnSend,
                OnConnect = OnConnect,
                OnDisconnect = OnDisconnect,
                TimeOut = new TimeSpan(0, 5, 0)
            };

            aServer.Start();

            pmsSrv = new PMSServer();
            pmsSrv.ReqPMSSetEvent += pmsSrv_ReqPMSSetEvent;

            cdrSrv = new CDRecorder();
            cdrSrv.RequestCDREvent += cdrSrv_RequestCDREvent;
        }