- Timestamp:
- 12/10/07 04:31:19 (13 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde
r101 r102 220 220 221 221 // TODO: Make this 'NetworkServerConnection'? Or just 'ServerConnection'? 222 // TODO: Pull one-line methods into class definition to allow inlining? 222 223 class NetworkConnection { // Essentially a Socket wrapper 223 224 … … 226 227 227 228 void listen(); // TODO: Return a useful value? 229 230 int isConnected(); 228 231 229 232 private: … … 244 247 ::listen(_socket); // TODO: Use C++ namespaces for the driver functions? 245 248 } 249 250 int NetworkConnection::isConnected() { 251 /* 252 253 */ 254 // TODO: If we want the 'Network*' classes to be generic we 255 // would need to handle this differently: 256 return (getSn_SR(_socket) == SOCK_ESTABLISHED); 257 } 246 258 247 259 /* ----------------------- */