diff options
author | Lee Salzman <[email protected]> | 2022-02-20 15:05:33 -0500 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2022-02-20 15:05:33 -0500 |
commit | 3340d1cf85f2c917eba29d179854c24a31dd37e2 (patch) | |
tree | 61e2564fe3b06afd4872f2ac6b453ffb8c8a3464 /peer.c | |
parent | bd0115c907c82b4a9faf332a201e6e8065b56866 (diff) | |
download | enet-3340d1cf85f2c917eba29d179854c24a31dd37e2.tar.gz enet-3340d1cf85f2c917eba29d179854c24a31dd37e2.zip |
more enet_peer_send notes
Diffstat (limited to 'peer.c')
-rw-r--r-- | peer.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 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 channelID channel on which to send |