HandleMessage() public abstract method

public abstract HandleMessage ( int fromId, Msg msg ) : void
fromId int
msg Msg
return void
Example #1
0
        public virtual void Receive(int fromId, ulong protocolId, Msg msg)
        {
            // Console.WriteLine("Receive msg " + Id + " " + protocolId);
            Debug.Assert(RegisteredProtocols.ContainsKey(protocolId));

            Protocol protocol = RegisteredProtocols[protocolId];

            protocol.HandleMessage(fromId, msg);
            CheckCompleted(protocol);
        }