diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index 873fbce..aec5081 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -234,13 +234,17 @@ class NetworkConnection { // Essentially a Socket wrapper private: SOCKET _socket; static const int _MAX_SOCKETS = MAX_SOCK_NUM; // TODO: Use this. + static int _nextSocket; }; +int NetworkConnection::_nextSocket = 0; + NetworkConnection::NetworkConnection(uint16_t port) { /* */ - _socket = 0; // TODO: Do properly + _socket = _nextSocket; // TODO: Do properly (& max) + _nextSocket++; socket(_socket, Sn_MR_TCP, port, 0); }