aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-02-14 10:27:36 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-02-14 10:27:36 +0000
commit8e8de293471de9ce46cff96c8e88f75d80a2f593 (patch)
treef82ea53d5551cb4053c1436fe6b556161f6aec1c /libraries
parentacc72e2c7808570aabd0bb85d7b3fc4840cde3f1 (diff)
Fixing Ethernet client connect code to properly chance source port each time.
Diffstat (limited to 'libraries')
-rw-r--r--libraries/Ethernet/Client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libraries/Ethernet/Client.cpp b/libraries/Ethernet/Client.cpp
index 6c19b8f..c62e26c 100644
--- a/libraries/Ethernet/Client.cpp
+++ b/libraries/Ethernet/Client.cpp
@@ -33,8 +33,7 @@ uint8_t Client::connect() {
_srcport++;
- // XXX: what port should we connect from?
- socket(_sock, Sn_MR_TCP, _port, 1024 + _srcport);
+ socket(_sock, Sn_MR_TCP, 1024 + _srcport, 0);
if (!::connect(_sock, _ip, _port))
return 0;