Changeset 119 for branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde
- Timestamp:
- 12/19/07 04:51:41 (13 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde
r118 r119 235 235 SOCKET _socket; 236 236 static const int _MAX_SOCKETS = MAX_SOCK_NUM; // TODO: Use this. 237 static int _nextSocket; 237 238 }; 238 239 240 int NetworkConnection::_nextSocket = 0; 241 239 242 NetworkConnection::NetworkConnection(uint16_t port) { 240 243 /* 241 244 242 245 */ 243 _socket = 0; // TODO: Do properly 246 _socket = _nextSocket; // TODO: Do properly (& max) 247 _nextSocket++; 244 248 socket(_socket, Sn_MR_TCP, port, 0); 245 249 }