Changeset 120 for branches

Show
Ignore:
Timestamp:
12/19/07 05:11:18 (13 months ago)
Author:
follower
Message:

Add defines for echo server state machine states. Add place to store current state. Initialise first state and listen. (Currently unused.)

Files:
1 modified

Legend:

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

    r119 r120  
    415415/* ----- EchoServer ------ */ 
    416416 
     417#define ECHO_CONNECT_WAIT 0 
     418#define ECHO_CONNECTED 1 
     419#define ECHO_CLOSE 2 
     420#define ECHO_HALT 3 
     421 
    417422class EchoServer { 
    418423   
     
    422427  private: 
    423428    NetworkConnection _connection; // TODO: Make public? 
     429    int _state; 
    424430}; 
    425431 
     
    428434   
    429435   */ 
     436 
     437  _state = ECHO_CONNECT_WAIT; 
     438 
     439  _connection.listen(); // TODO: We should be using Network.listen(...) here and in initialisation list. 
    430440} 
    431441