mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
add comments
This commit is contained in:
parent
bbde7edc1d
commit
33318555fe
@ -14,6 +14,7 @@ public LocalConnectionToClient() : base(LocalConnectionId, false) {}
|
|||||||
|
|
||||||
public override string address => "localhost";
|
public override string address => "localhost";
|
||||||
|
|
||||||
|
// Send stage two: serialized NetworkMessage as ArraySegment<byte>
|
||||||
internal override void Send(ArraySegment<byte> segment, int channelId = Channels.Reliable)
|
internal override void Send(ArraySegment<byte> segment, int channelId = Channels.Reliable)
|
||||||
{
|
{
|
||||||
// get a writer to copy the message into since the segment is only
|
// get a writer to copy the message into since the segment is only
|
||||||
@ -66,6 +67,7 @@ public class LocalConnectionToServer : NetworkConnectionToServer
|
|||||||
// parameterless constructor that disables batching for local connections
|
// parameterless constructor that disables batching for local connections
|
||||||
public LocalConnectionToServer() : base(false) {}
|
public LocalConnectionToServer() : base(false) {}
|
||||||
|
|
||||||
|
// Send stage two: serialized NetworkMessage as ArraySegment<byte>
|
||||||
internal override void Send(ArraySegment<byte> segment, int channelId = Channels.Reliable)
|
internal override void Send(ArraySegment<byte> segment, int channelId = Channels.Reliable)
|
||||||
{
|
{
|
||||||
if (segment.Count == 0)
|
if (segment.Count == 0)
|
||||||
|
@ -16,6 +16,7 @@ public NetworkConnectionToClient(int networkConnectionId, bool batching)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Send stage two: serialized NetworkMessage as ArraySegment<byte>
|
||||||
internal override void Send(ArraySegment<byte> segment, int channelId = Channels.Reliable)
|
internal override void Send(ArraySegment<byte> segment, int channelId = Channels.Reliable)
|
||||||
{
|
{
|
||||||
//Debug.Log("ConnectionSend " + this + " bytes:" + BitConverter.ToString(segment.Array, segment.Offset, segment.Count));
|
//Debug.Log("ConnectionSend " + this + " bytes:" + BitConverter.ToString(segment.Array, segment.Offset, segment.Count));
|
||||||
|
@ -11,6 +11,7 @@ public NetworkConnectionToServer(bool batching) : base(batching)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Send stage two: serialized NetworkMessage as ArraySegment<byte>
|
||||||
internal override void Send(ArraySegment<byte> segment, int channelId = Channels.Reliable)
|
internal override void Send(ArraySegment<byte> segment, int channelId = Channels.Reliable)
|
||||||
{
|
{
|
||||||
// Debug.Log("ConnectionSend " + this + " bytes:" + BitConverter.ToString(segment.Array, segment.Offset, segment.Count));
|
// Debug.Log("ConnectionSend " + this + " bytes:" + BitConverter.ToString(segment.Array, segment.Offset, segment.Count));
|
||||||
|
Loading…
Reference in New Issue
Block a user