Esempio n. 1
0
        public void Start(IGuideClient guideClient)
        {
            _guideClient = guideClient;
            _clientTerminal.Connect(IPAddress.Parse(_ipAddress), Port);
            _clientTerminal.StartListening();

            SendData(GuideServiceMessageType.Start, Guid.Empty);
        }
Esempio n. 2
0
        public void HandleRequest(IGuideClient GuideClient, Socket clientSocket, byte[] buffer)
        {
            var messageWrapper = MessageWrapper.Load(buffer, _messageReaders);

            _guideHandlers[messageWrapper.MessageType](GuideClient, messageWrapper);
        }