Skip to content

Commit

Permalink
Need to use int32_t to hold an UDP or TCP port number
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Veijo Pesonen committed Nov 9, 2018
1 parent 30c5aa6 commit ac4384c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ESP8266Interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface {
// Drivers's socket info
struct _sock_info {
bool open;
int16_t sport;
int32_t sport;
};
struct _sock_info _sock_i[ESP8266_SOCKET_COUNT];

Expand Down

0 comments on commit ac4384c

Please sign in to comment.