Click or drag to resize

IUDPTransportPollReceive Method

[This is preliminary documentation and is subject to change.]

Polls for incomming events

Namespace:  MLAPI.Transports
Assembly:  MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
NetEventType PollReceive(
	out uint clientId,
	out int channelId,
	ref byte[] data,
	int bufferSize,
	out int receivedSize,
	out byte error
)
Request Example View Source

Parameters

clientId
Type: SystemUInt32
The clientId this event is for
channelId
Type: SystemInt32
The channelId this message comes from
data
Type: SystemByte
The data buffer, if any
bufferSize
Type: SystemInt32
The size of the buffer
receivedSize
Type: SystemInt32
The amount of bytes we received
error
Type: SystemByte
Error byte. Does nothhing

Return Value

Type: NetEventType
Returns the event type
See Also