Skip to content

Commit

Permalink
enet_peer_send note about failure and enet_packet_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
lsalzman committed Feb 20, 2022
1 parent 987cd06 commit bd0115c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions peer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd0115c

Please sign in to comment.