Skip to content

Commit

Permalink
udp: add doxygen comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Aug 9, 2023
1 parent 9cdf2d4 commit 7ce99dc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/udp/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,14 @@ int udp_send_helper(struct udp_sock *us, const struct sa *dst,
}


/**
* Receive a UDP Datagram on this UDP helper layer.
*
* @param us UDP Socket
* @param src Source network address
* @param mb Buffer to receive
* @param uhx UDP Helper
*/
void udp_recv_helper(struct udp_sock *us, const struct sa *src,
struct mbuf *mb, struct udp_helper *uhx)
{
Expand Down Expand Up @@ -1061,6 +1069,13 @@ void udp_flush(const struct udp_sock *us)
}


/**
* Receive a UDP Datagram on this UDP socket. All helpers are processed.
*
* @param us UDP Socket
* @param src Source network address
* @param mb Buffer to receive
*/
void udp_recv_packet(struct udp_sock *us, const struct sa *src,
struct mbuf *mb)
{
Expand Down

0 comments on commit 7ce99dc

Please sign in to comment.