1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Added new method to UDP to take a hostname rather than an IP address. Part of issue 243

This commit is contained in:
amcewen
2011-02-04 21:15:42 +00:00
committed by David A. Mellis
parent abfe299bfd
commit a9c2ebf455
2 changed files with 20 additions and 0 deletions

View File

@ -60,6 +60,9 @@ public:
// Start building up a packet to send to the remote host specific in ip and port
// Returns 1 if successful, 0 if there was a problem with the supplied IP address or port
int beginPacket(IPAddress ip, uint16_t port);
// Start building up a packet to send to the remote host specific in host and port
// Returns 1 if successful, 0 if there was a problem resolving the hostname or port
int beginPacket(const char *host, uint16_t port);
// Finish off this packet and send it
// Returns 1 if the packet was sent successfully, 0 if there was an error
int endPacket();