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

IndexerName added, comment added and corrected allocation in imageserver sample

This commit is contained in:
lidgren
2010-05-18 20:23:16 +00:00
parent f39a7d8fcb
commit 00edeaabf4
3 changed files with 5 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ namespace Lidgren.Network
m_data[idx] &= (uint)(~(1 << bitNr));
}
[System.Runtime.CompilerServices.IndexerName("Bit")]
public bool this [int index]
{
get { return Get(index); }

View File

@@ -6,6 +6,9 @@ namespace Lidgren.Network
{
public partial class NetPeer
{
/// <summary>
/// Send NetIntroduction to hostExternal and clientExternal; introducing client to host
/// </summary>
public void Introduce(
IPEndPoint hostInternal,
IPEndPoint hostExternal,

View File

@@ -109,7 +109,7 @@ namespace ImageServer
}
*/
NetOutgoingMessage om = Server.CreateMessage(ImageData.Length);
NetOutgoingMessage om = Server.CreateMessage(ImageData.Length + 5);
om.Write((ushort)ImageWidth);
om.Write((ushort)ImageHeight);