@@ -130,16 +130,16 @@ class EthernetClass {
130130 static uint8_t socketPeek (uint8_t s);
131131 // sets up a UDP datagram, the data for which will be provided by one
132132 // or more calls to bufferData and then finally sent with sendUDP.
133- // return 1 if the datagram was successfully set up, or 0 if there was an error
134- static int socketStartUDP (uint8_t s, uint8_t * addr, uint16_t port);
133+ // return true if the datagram was successfully set up, or false if there was an error
134+ static bool socketStartUDP (uint8_t s, uint8_t * addr, uint16_t port);
135135 // copy up to len bytes of data from buf into a UDP datagram to be
136136 // sent later by sendUDP. Allows datagrams to be built up from a series of bufferData calls.
137137 // return Number of bytes successfully buffered
138138 static uint16_t socketBufferData (uint8_t s, uint16_t offset, const uint8_t * buf, uint16_t len);
139139 // Send a UDP datagram built up from a sequence of startUDP followed by one or more
140140 // calls to bufferData.
141- // return 1 if the datagram was successfully sent, or 0 if there was an error
142- static int socketSendUDP (uint8_t s);
141+ // return true if the datagram was successfully sent, or false if there was an error
142+ static bool socketSendUDP (uint8_t s);
143143 // Initialize the "random" source port number
144144 static void socketPortRand (uint16_t n);
145145};
0 commit comments