mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
more enet_peer_send notes
This commit is contained in:
parent
bd0115c907
commit
3340d1cf85
1 changed files with 3 additions and 1 deletions
4
peer.c
4
peer.c
|
@ -93,7 +93,9 @@ enet_peer_throttle (ENetPeer * peer, enet_uint32 rtt)
|
||||||
|
|
||||||
On success, ENet will assume ownership of the packet, and so enet_packet_destroy
|
On success, ENet will assume ownership of the packet, and so enet_packet_destroy
|
||||||
should not be called on it thereafter. On failure, the caller still must destroy
|
should not be called on it thereafter. On failure, the caller still must destroy
|
||||||
the packet on its own as ENet has not queued the packet.
|
the packet on its own as ENet has not queued the packet. The caller can also
|
||||||
|
check the packet's referenceCount field after sending to check if ENet queued
|
||||||
|
the packet and thus incremented the referenceCount.
|
||||||
|
|
||||||
@param peer destination for the packet
|
@param peer destination for the packet
|
||||||
@param channelID channel on which to send
|
@param channelID channel on which to send
|
||||||
|
|
Loading…
Reference in a new issue