From 5e153c539ecbb6214988ad35e4de7c212d006128 Mon Sep 17 00:00:00 2001 From: follower Date: Tue, 11 Dec 2007 10:47:04 +0000 Subject: [PATCH] A quick fix to enable things to work again. The bug occurred because the socket number supplied to the socket creation/activation routine was never correctly initialised. I had thought a call to 'socket' routine returned the socket number in the first parameter, but it turns out I was supposed to _supply_ the socket number. (I had misunderstood what was hidden behind the 'SOCKET' type definition.) Oddly enough it took nearly two months before this mistake caused something to stop working (seemingly)--it seems nonsensical values didn't always cause failure. TODO: Investigate this further? TODO: FIx properly to allow multiple sockets and tracking thereof. git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@105 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b --- branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde | 1 + 1 file changed, 1 insertion(+) diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index 7f8ff7a..cdf90cb 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -238,6 +238,7 @@ NetworkConnection::NetworkConnection(uint16_t port) { /* */ + _socket = 0; // TODO: Do properly socket(_socket, Sn_MR_TCP, port, 0); }