protected internal virtual void doProcessReceivedData(MessageEnvelope message, Transport forTransport) { //Console.WriteLine("!!! Received + " + message.Id + " Body: " + message.Body); if (message.Body.isAliveRequestSelected()) return ; bool doProcessListeners = !forTransport.processReceivedCallMessage(message); if (doProcessListeners) { lock(readers) { bool handled = false; foreach(ITransportReader reader in readers) { handled = reader.onReceive(message, forTransport); } if (!handled && this.unhanledReader != null) this.unhanledReader.onReceive(message, forTransport); } } }
protected internal virtual void doProcessReceivedData(ByteBuffer packet, Transport forTransport) { IList<MessageEnvelope> messages = messageCoder.decode(packet); if (messages != null) { foreach (MessageEnvelope message in messages) { doProcessReceivedData(message, forTransport); } } }
protected internal virtual void doProcessReceivedData(MessageEnvelope message, Transport forTransport) { //Console.WriteLine("!!! Received + " + message.Id + " Body: " + message.Body); if (message.Body.isAliveRequestSelected()) { return; } bool doProcessListeners = !forTransport.processReceivedCallMessage(message); if (doProcessListeners) { lock (readers) { bool handled = false; foreach (ITransportReader reader in readers) { handled = reader.onReceive(message, forTransport); } if (!handled && this.unhanledReader != null) { this.unhanledReader.onReceive(message, forTransport); } } } }