diff options
author | Lee Salzman <[email protected]> | 2022-02-20 15:02:40 -0500 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2022-02-20 15:03:09 -0500 |
commit | bd0115c907c82b4a9faf332a201e6e8065b56866 (patch) | |
tree | ffe18127a4d8774e02383acce721777689bf6d54 /peer.c | |
parent | 987cd0650f887033c8b1450f771763639bcbb111 (diff) | |
download | enet-bd0115c907c82b4a9faf332a201e6e8065b56866.tar.gz enet-bd0115c907c82b4a9faf332a201e6e8065b56866.zip |
enet_peer_send note about failure and enet_packet_destroy
Diffstat (limited to 'peer.c')
-rw-r--r-- | peer.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -90,6 +90,11 @@ enet_peer_throttle (ENetPeer * peer, enet_uint32 rtt) } /** Queues a packet to be sent. + + 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. + @param peer destination for the packet @param channelID channel on which to send @param packet packet to send |