From 8e8de293471de9ce46cff96c8e88f75d80a2f593 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 14 Feb 2009 10:27:36 +0000 Subject: Fixing Ethernet client connect code to properly chance source port each time. --- libraries/Ethernet/Client.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libraries/Ethernet') 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; -- cgit v1.2.3-18-g5258