public void HandleRequest(IScavengerClient scavengerClient, Socket clientSocket, byte[] buffer)
        {
            var messageWrapper = MessageWrapper.Load(buffer, _messageReaders);

            _scavengerHandlers[messageWrapper.MessageType](scavengerClient, messageWrapper);
        }
Example #2
0
        private void SendData(ScavengerServiceMessageType messageType, Guid scavengerId, Action <BinaryWriter> writeData = null)
        {
            var message = new MessageWrapper(ClientType.Scavenger, (int)messageType, scavengerId);

            _clientTerminal.SendMessage(message.WriteBuffer(writeData));
        }
Example #3
0
        public void HandleRequest(IGuideClient GuideClient, Socket clientSocket, byte[] buffer)
        {
            var messageWrapper = MessageWrapper.Load(buffer, _messageReaders);

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