Skip to content

Commit

Permalink
udp: add doxygen comments (#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored Aug 9, 2023
1 parent 46c0737 commit ae12b20
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 ae12b20

Please sign in to comment.