diff --git a/Lidgren.Network/NetConnection.cs b/Lidgren.Network/NetConnection.cs index 810edc6..5cce58c 100644 --- a/Lidgren.Network/NetConnection.cs +++ b/Lidgren.Network/NetConnection.cs @@ -23,8 +23,18 @@ namespace Lidgren.Network internal NetQueue> m_queuedAcks; private int m_sendBufferWritePtr; private int m_sendBufferNumMessages; + private object m_tag; internal NetConnectionStatistics m_statistics; + /// + /// Gets or sets the application defined object containing data about the connection + /// + public object Tag + { + get { return m_tag; } + set { m_tag = value; } + } + /// /// Gets the peer which holds this connection ///