mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Improve UDP documentation using rawapi.txt texts
This commit is contained in:
parent
558bd73a6d
commit
d020bfc0df
@ -606,7 +606,7 @@ tcp_abort(struct tcp_pcb *pcb)
|
|||||||
/**
|
/**
|
||||||
* @ingroup tcp_raw
|
* @ingroup tcp_raw
|
||||||
* Binds the connection to a local port number and IP address. If the
|
* Binds the connection to a local port number and IP address. If the
|
||||||
* IP address is not given (i.e., ipaddr == NULL), the connection is
|
* IP address is not given (i.e., ipaddr == IP_ANY_TYPE), the connection is
|
||||||
* bound to all local IP addresses.
|
* bound to all local IP addresses.
|
||||||
* If another connection is bound to the same port, the function will
|
* If another connection is bound to the same port, the function will
|
||||||
* return ERR_USE, otherwise ERR_OK is returned.
|
* return ERR_USE, otherwise ERR_OK is returned.
|
||||||
|
@ -423,7 +423,8 @@ chkerr:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup udp_raw
|
* @ingroup udp_raw
|
||||||
* Send data using UDP.
|
* Sends the pbuf p using UDP. The pbuf is not deallocated.
|
||||||
|
*
|
||||||
*
|
*
|
||||||
* @param pcb UDP PCB used to send the data.
|
* @param pcb UDP PCB used to send the data.
|
||||||
* @param p chain of pbuf's to be sent.
|
* @param p chain of pbuf's to be sent.
|
||||||
@ -868,7 +869,7 @@ udp_sendto_if_src_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *d
|
|||||||
* Bind an UDP PCB.
|
* Bind an UDP PCB.
|
||||||
*
|
*
|
||||||
* @param pcb UDP PCB to be bound with a local address ipaddr and port.
|
* @param pcb UDP PCB to be bound with a local address ipaddr and port.
|
||||||
* @param ipaddr local IP address to bind with. Use IP4_ADDR_ANY to
|
* @param ipaddr local IP address to bind with. Use IP_ANY_TYPE to
|
||||||
* bind to all local interfaces.
|
* bind to all local interfaces.
|
||||||
* @param port local UDP port to bind with. Use 0 to automatically bind
|
* @param port local UDP port to bind with. Use 0 to automatically bind
|
||||||
* to a random port between UDP_LOCAL_PORT_RANGE_START and
|
* to a random port between UDP_LOCAL_PORT_RANGE_START and
|
||||||
@ -1003,9 +1004,8 @@ udp_bind_netif(struct udp_pcb *pcb, const struct netif *netif)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup udp_raw
|
* @ingroup udp_raw
|
||||||
* Connect an UDP PCB.
|
* Sets the remote end of the pcb. This function does not generate any
|
||||||
*
|
* network traffic, but only sets the remote address of the pcb.
|
||||||
* This will associate the UDP PCB with the remote address.
|
|
||||||
*
|
*
|
||||||
* @param pcb UDP PCB to be connected with remote address ipaddr and port.
|
* @param pcb UDP PCB to be connected with remote address ipaddr and port.
|
||||||
* @param ipaddr remote IP address to connect with.
|
* @param ipaddr remote IP address to connect with.
|
||||||
@ -1068,7 +1068,8 @@ udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup udp_raw
|
* @ingroup udp_raw
|
||||||
* Disconnect a UDP PCB
|
* Remove the remote end of the pcb. This function does not generate
|
||||||
|
* any network traffic, but only removes the remote address of the pcb.
|
||||||
*
|
*
|
||||||
* @param pcb the udp pcb to disconnect.
|
* @param pcb the udp pcb to disconnect.
|
||||||
*/
|
*/
|
||||||
@ -1093,8 +1094,7 @@ udp_disconnect(struct udp_pcb *pcb)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup udp_raw
|
* @ingroup udp_raw
|
||||||
* Set a receive callback for a UDP PCB
|
* Set a receive callback for a UDP PCB.
|
||||||
*
|
|
||||||
* This callback will be called when receiving a datagram for the pcb.
|
* This callback will be called when receiving a datagram for the pcb.
|
||||||
*
|
*
|
||||||
* @param pcb the pcb for which to set the recv callback
|
* @param pcb the pcb for which to set the recv callback
|
||||||
@ -1111,7 +1111,7 @@ udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup udp_raw
|
* @ingroup udp_raw
|
||||||
* Remove an UDP PCB.
|
* Removes and deallocates the pcb.
|
||||||
*
|
*
|
||||||
* @param pcb UDP PCB to be removed. The PCB is removed from the list of
|
* @param pcb UDP PCB to be removed. The PCB is removed from the list of
|
||||||
* UDP PCB's and the data structure is freed from memory.
|
* UDP PCB's and the data structure is freed from memory.
|
||||||
@ -1144,7 +1144,9 @@ udp_remove(struct udp_pcb *pcb)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ingroup udp_raw
|
* @ingroup udp_raw
|
||||||
* Create a UDP PCB.
|
* Creates a new UDP pcb which can be used for UDP communication. The
|
||||||
|
* pcb is not active until it has either been bound to a local address
|
||||||
|
* or connected to a remote address.
|
||||||
*
|
*
|
||||||
* @return The UDP PCB which was created. NULL if the PCB data structure
|
* @return The UDP PCB which was created. NULL if the PCB data structure
|
||||||
* could not be allocated.
|
* could not be allocated.
|
||||||
@ -1174,6 +1176,8 @@ udp_new(void)
|
|||||||
/**
|
/**
|
||||||
* @ingroup udp_raw
|
* @ingroup udp_raw
|
||||||
* Create a UDP PCB for specific IP type.
|
* Create a UDP PCB for specific IP type.
|
||||||
|
* The pcb is not active until it has either been bound to a local address
|
||||||
|
* or connected to a remote address.
|
||||||
*
|
*
|
||||||
* @param type IP address type, see @ref lwip_ip_addr_type definitions.
|
* @param type IP address type, see @ref lwip_ip_addr_type definitions.
|
||||||
* If you want to listen to IPv4 and IPv6 (dual-stack) packets,
|
* If you want to listen to IPv4 and IPv6 (dual-stack) packets,
|
||||||
|
Loading…
Reference in New Issue
Block a user