@@ -130,16 +130,16 @@ class EthernetClass {
130
130
static uint8_t socketPeek (uint8_t s);
131
131
// sets up a UDP datagram, the data for which will be provided by one
132
132
// 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);
135
135
// copy up to len bytes of data from buf into a UDP datagram to be
136
136
// sent later by sendUDP. Allows datagrams to be built up from a series of bufferData calls.
137
137
// return Number of bytes successfully buffered
138
138
static uint16_t socketBufferData (uint8_t s, uint16_t offset, const uint8_t * buf, uint16_t len);
139
139
// Send a UDP datagram built up from a sequence of startUDP followed by one or more
140
140
// 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);
143
143
// Initialize the "random" source port number
144
144
static void socketPortRand (uint16_t n);
145
145
};
0 commit comments