File: application.hpp

package info (click to toggle)
libclaw 1.7.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,080 kB
  • sloc: cpp: 13,287; sh: 227; makefile: 8
file content (33 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (8)
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__