You've already forked lidgren-network-gen3
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:
@@ -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); }
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user