#include "BaseServ.h" class MyServer : public TBaseServerApp { protected: virtual const wxChar* GetAppName() const; virtual void ProcessCommand(wxString cmd, wxSocketOutputStream& outs); }; // Implementare almeno queste due funzioni pure virtuali const wxChar* MyServer::GetAppName() const { return "MyServer"; } void MyServer::ProcessCommand(wxString cmd, wxSocketOutputStream& outs) { WriteLog("Processing..."); outs << "\n" << "

Hello world!

\n" << "

Http command:

\n" << "

" << cmd << "

\n" << "\n"; } // Istanziare l'applicazione principale IMPLEMENT_APP(MyServer)