sampy/notes/notes.txt

46 lines
1.8 KiB
Plaintext

SendImmediate( (char*)bitStream.GetData(), bitStream.GetNumberOfBitsUsed(), SYSTEM_PRIORITY, UNRELIABLE, 0, target, false, false, currentTimeNS )
char* data = bitStream.GetData()
int numberOfBitsToSend = bitStream.GetNumberOfBitsUsed()
PacketPriority priority = SYSTEM_PRIORITY
PacketReliability reliability = UNRELIABLE
char orderingChannel = 0
PlayerID playerId = target
bool broadcast = false
bool useCallerDataAllocation = false
RakNetTimeNS currentTime = currentTimeNS
Send( char *data, int numberOfBitsToSend, PacketPriority priority, PacketReliability reliability, unsigned char orderingChannel, bool makeDataCopy, int MTUSize, RakNetTimeNS currentTime )
char* data = bitStream.GetData()
int numberOfBitsToSend = bitStream.GetNumberOfBitsUsed()
PacketPriority priority = SYSTEM_PRIORITY
PacketReliability reliability = UNRELIABLE
char orderingChannel = 0
bool makeDataCopy = true
int MTUSize = 576
RakNetTimeNS currentTime = currentTimeNS
internalPacket->creationTime = currentTime
internalPacket->data = data // (cpy)
internalPacket->dataBitLength = numberOfBitsToSend
internalPacket->nextActionTime = 0
internalPacket->messageNumber = messageNumber
internalPacket->priority = priority
internalPacket->reliability = reliability
internalPacket->splitPacketCount = 0
int headerLength = BITS_TO_BYTES( GetBitStreamHeaderLength(internalPacket) )
int maxDataSize = 576 - 28 - headerLength // MTUSize - UDP_HEADER_SIZE - headerLength
; More stuff to note from
...
sendPacketSet[ internalPacket->priority ].Push( internalPacket );