Added a function simple_udp_sendto_port() for sending a UDP packet to a specified port.

This commit is contained in:
Adam Dunkels 2012-11-26 19:48:27 +01:00
parent 5c5545ba7d
commit f561bfc205
2 changed files with 32 additions and 0 deletions

View file

@ -86,6 +86,10 @@ int simple_udp_sendto(struct simple_udp_connection *c,
const void *data, uint16_t datalen,
const uip_ipaddr_t *to);
int simple_udp_sendto_port(struct simple_udp_connection *c,
const void *data, uint16_t datalen,
const uip_ipaddr_t *to, uint16_t to_port);
void simple_udp_init(void);
#endif /* SIMPLE_UDP_H */