mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
Merge branch 'master' into ide-1.5.x
Conflicts: app/src/processing/app/Base.java
This commit is contained in:
commit
2a912bab62
@ -1,3 +1,14 @@
|
||||
|
||||
ARDUINO 1.5.9
|
||||
|
||||
[ide]
|
||||
* Updated AStyle formatter to v2.04: http://astyle.sourceforge.net/notes.html
|
||||
|
||||
The following changes are included also in the Arduino IDE 1.0.7:
|
||||
|
||||
[libraries]
|
||||
* EthernetClien: use IANA recommended ephemeral port range, 49152-65535 (Jack Christensen, cifer-lee)
|
||||
|
||||
ARDUINO 1.5.8 BETA - 2014.10.01
|
||||
|
||||
[ide]
|
||||
@ -329,6 +340,12 @@ ARDUINO 1.5 BETA - 2012.10.22
|
||||
* For more info refer to this press release:
|
||||
http://arduino.cc/blog/2012/10/22/arduino-1-5-support-for-the-due-and-other-processors-easier-library-installation-simplified-board-menu-etc/
|
||||
|
||||
ARDUINO 1.0.7
|
||||
|
||||
[libraries]
|
||||
* Backported GSM from IDE 1.5.x
|
||||
* EthernetClien: use IANA recommended ephemeral port range, 49152-65535 (Jack Christensen, cifer-lee)
|
||||
|
||||
ARDUINO 1.0.6 - 2014.09.16
|
||||
|
||||
[core]
|
||||
|
@ -12,7 +12,7 @@ extern "C" {
|
||||
#include "EthernetServer.h"
|
||||
#include "Dns.h"
|
||||
|
||||
uint16_t EthernetClient::_srcport = 1024;
|
||||
uint16_t EthernetClient::_srcport = 49152; //Use IANA recommended ephemeral port range 49152-65535
|
||||
|
||||
EthernetClient::EthernetClient() : _sock(MAX_SOCK_NUM) {
|
||||
}
|
||||
@ -51,7 +51,7 @@ int EthernetClient::connect(IPAddress ip, uint16_t port) {
|
||||
return 0;
|
||||
|
||||
_srcport++;
|
||||
if (_srcport == 0) _srcport = 1024;
|
||||
if (_srcport == 0) _srcport = 49152; //Use IANA recommended ephemeral port range 49152-65535
|
||||
socket(_sock, SnMR::TCP, _srcport, 0);
|
||||
|
||||
if (!::connect(_sock, rawIPAddress(ip), port)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user