Steamworks.SteamGameServer.GetNextOutgoingPacket C# (CSharp) Method

GetNextOutgoingPacket() public static method

AFTER calling HandleIncomingPacket for any packets that came in that frame, call this.

This gets a packet that the master server updater needs to send out on UDP.

It returns the length of the packet it wants to send, or 0 if there are no more packets to send.

Call this each frame until it returns 0.

public static GetNextOutgoingPacket ( byte pOut, int cbMaxOut, uint &pNetAdr, ushort &pPort ) : int
pOut byte
cbMaxOut int
pNetAdr uint
pPort ushort
return int
		public static int GetNextOutgoingPacket(byte[] pOut, int cbMaxOut, out uint pNetAdr, out ushort pPort) {
			InteropHelp.TestIfAvailableGameServer();
			return NativeMethods.ISteamGameServer_GetNextOutgoingPacket(pOut, cbMaxOut, out pNetAdr, out pPort);
		}