Add initial skeleton for EchoServer class. (Not yet used.)

git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@116 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
master
follower 17 years ago
parent 4f372c3010
commit 677877160c

@ -404,6 +404,27 @@ NetworkConnection NetworkInterface::listen(uint16_t port) {
// NetworkInterface Network = NetworkInterface(...); // TODO: Make this a global
/* ----------------------- */
/* ----- EchoServer ------ */
class EchoServer {
public:
EchoServer(int port);
private:
NetworkConnection _connection; // TODO: Make public?
};
EchoServer::EchoServer(int port) : _connection (NetworkConnection(port)) {
/*
*/
}
/* ----------------------- */
// #define PIN_RESET 9 // WIZnet module /RESET

Loading…
Cancel
Save