Facepunch.Steamworks Wiki

Revision Difference

SteamNetworking.SendP2PPacket#522460

<member type="method" namespace="Steamworks" parent="SteamNetworking" name="SendP2PPacket" static="true"> <args> <arg name="steamid" type="SteamId"></arg> <arg name="data" type="byte[]"></arg> <arg name="length" type="int" default="-1"></arg> <arg name="nChannel" type="int" default="0"></arg> <arg name="sendType" type="P2PSend" default="Reliable"></arg> </args> <return type="bool"></return> <summary>Sends a P2P packet to the specified user. This is a session-less API which automatically establishes NAT-traversing or Steam relay server connections. NOTE: The first packet send may be delayed as the NAT-traversal code runs.</summary> </member> <member type="method" namespace="Steamworks" parent="SteamNetworking" name="SendP2PPacket" static="true"> <args> <arg name="steamid" type="SteamId"></arg> <arg name="data" type="System.Byte*"></arg> <arg name="length" type="uint"></arg> <arg name="nChannel" type="int" default="1"></arg> <arg name="sendType" type="P2PSend" default="Reliable"></arg> </args> <return type="bool"></return> <summary>Sends a P2P packet to the specified user. This is a session-less API which automatically establishes NAT-traversing or Steam relay server connections. NOTE: The first packet send may be delayed as the NAT-traversal code runs.</summary> </member>