Fun.FunapiNetwork.OnTransportReceived C# (CSharp) Method

OnTransportReceived() private method

private OnTransportReceived ( TransportProtocol protocol, string>.Dictionary header, ArraySegment body ) : void
protocol TransportProtocol
header string>.Dictionary
body ArraySegment
return void
        private void OnTransportReceived(TransportProtocol protocol, Dictionary<string, string> header, ArraySegment<byte> body)
        {
            DebugUtils.DebugLog("OnTransportReceived invoked.");
            last_received_ = DateTime.Now;

            lock (message_lock_)
            {
                message_buffer_.Add(new KeyValuePair<TransportProtocol, ArraySegment<byte>>(protocol, body));
            }
        }