Changeset 107

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

Add connection byte read method--not yet used.

Files:
1 modified

Legend:

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

    r106 r107  
    227227 
    228228    void listen(); // TODO: Return a useful value? 
    229  
    230229    int isConnected(); 
     230    byte read(); 
    231231    void NetworkConnection::close(); 
    232232 
     
    249249   */   
    250250  ::listen(_socket); // TODO: Use C++ namespaces for the driver functions? 
     251} 
     252 
     253byte NetworkConnection::read() { 
     254  /* 
     255 
     256     Note: This blocks until a byte is available. 
     257 
     258   */ 
     259  uint8_t theByte; 
     260  recv(_socket, &theByte, 1); 
     261  return theByte;     
    251262} 
    252263