1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#ifndef __APPLICATION_HPP__
#define __APPLICATION_HPP__
#include <claw/application.hpp>
#include <vector>
class ex_sockets : public claw::application
{
public:
ex_sockets( int& argc, char** &argv );
int run();
private:
void check_arguments( int& argc, char** &argv );
void run_server() const;
void run_client() const;
private:
bool m_quit;
bool m_server;
std::string m_ip;
unsigned int m_port;
unsigned int m_delay;
std::vector<std::string> m_message;
}; // class ex_sockets
#endif // __APPLICATION_HPP__
|