Changeset 109

Show
Ignore:
Timestamp:
12/11/07 03:14:44 (12 months ago)
Author:
follower
Message:

Change connection listen method to return a boolean indicating whether the socket began to listen successfully. TODO: Use this value usefully.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde

    r108 r109  
    226226    NetworkConnection(uint16_t port); // TODO: Add UDP, TCP choice? 
    227227 
    228     void listen(); // TODO: Return a useful value? 
     228    int listen(); 
    229229    int isConnected(); 
    230230    byte read(); 
     
    244244} 
    245245 
    246 void NetworkConnection::listen() { // TODO: Make private or protected? 
     246int NetworkConnection::listen() { // TODO: Make private or protected? 
    247247  /* 
    248248 
    249249   */   
    250   ::listen(_socket); // TODO: Use C++ namespaces for the driver functions? 
     250  return !!::listen(_socket); // TODO: Use C++ namespaces for the driver functions? 
    251251} 
    252252