From 3340d1cf85f2c917eba29d179854c24a31dd37e2 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 20 Feb 2022 15:05:33 -0500 Subject: more enet_peer_send notes --- peer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'peer.c') diff --git a/peer.c b/peer.c index cb810c6..11b0817 100644 --- a/peer.c +++ b/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 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 -- cgit v1.2.3