Skip to content

Commit ac4384c

Browse files
author
Veijo Pesonen
committed
Need to use int32_t to hold an UDP or TCP port number
Need to be able to hold source port numbers up to value 65535 - or -1 to indicate source port is not bound to a certain number.
1 parent 30c5aa6 commit ac4384c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ESP8266Interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface {
354354
// Drivers's socket info
355355
struct _sock_info {
356356
bool open;
357-
int16_t sport;
357+
int32_t sport;
358358
};
359359
struct _sock_info _sock_i[ESP8266_SOCKET_COUNT];
360360

0 commit comments

Comments
 (0)