You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/*
|
|
|
|
Simple state machine-based Echo Server.
|
|
|
|
*/
|
|
|
|
#ifndef _ECHO_SERVER_H_
|
|
#define _ECHO_SERVER_H_
|
|
|
|
class EchoServer {
|
|
|
|
public:
|
|
EchoServer(int port);
|
|
void next(); // TODO: Return something useful?
|
|
|
|
private:
|
|
NetworkConnection _connection; // TODO: Make public?
|
|
int _state;
|
|
};
|
|
|
|
#endif
|