1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

Exposed the Socket in NetPeer

This commit is contained in:
lidgren
2010-12-09 21:51:03 +00:00
parent 26f070ee4e
commit 55cdf75c5f
2 changed files with 5 additions and 3 deletions

View File

@@ -303,9 +303,6 @@ namespace Lidgren.Network
case NetDeliveryMethod.ReliableSequenced:
case NetDeliveryMethod.ReliableUnordered:
default:
//
// TODO: this is placeholder!
//
chan = new NetReliableSenderChannel(this, NetUtility.GetWindowSize(method));
break;
}

View File

@@ -34,6 +34,11 @@ namespace Lidgren.Network
private AutoResetEvent m_messageReceivedEvent = new AutoResetEvent(false);
/// <summary>
/// Gets the socket, if Start() has been called
/// </summary>
public Socket Socket { get { return m_socket; } }
internal void ReleaseMessage(NetIncomingMessage msg)
{
NetException.Assert(msg.m_incomingMessageType != NetIncomingMessageType.Error);