mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
18 0
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Prototype
unsigned Eth_Get_Udp_Dest_Port(void);
Returns Returns the destination port of the received UDP packet.
Description The function returns the destination port of the received UDP packet. The second
information contained in the UDP packet header is the destination port (socket) to which
the packet is targeted.
Requires This function must be called in a proper sequence, i.e. immediately after calling the
Eth_Get_Udp_Source_Port function.
Example
udp_dest_port = Eth_Get_Udp_Dest_Port();
Eth_Get_Udp_Dest_Port
Prototype
unsigned Eth_Get_Udp_Source_Port(void);
Returns Returns the source port (socket) of the received UDP packet.
Description The function returns the source port (socket) of the received UDP packet. After the
reception of valid IP packet is detected and its type is determined to be UDP, the UDP
packet header must be interpreted. UDP source port is the first data in the UDP header.
Requires This function must be called in a proper sequence, i.e. immediately after interpretation
of the IP packet header (at the very beginning of UDP packet header retrieval).
Example
udp_source_port = Eth_Get_Udp_Source_Port();
Eth_Get_Udp_Source_Port