Break out client into new object

This commit is contained in:
Keith Winstein
2011-09-30 01:04:05 -04:00
parent c087286e65
commit bbc78dbd0c
4 changed files with 272 additions and 240 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef STM_CLIENT_HPP
#define STM_CLIENT_HPP
#include <termios.h>
#include <string>
class STMClient {
private:
std::string ip;
int port;
std::string key;
struct termios saved_termios, raw_termios;
public:
STMClient( const char *s_ip, int s_port, const char *s_key )
: ip( s_ip ), port( s_port ), key( s_key ),
saved_termios(), raw_termios()
{}
void init( void );
void shutdown( void );
void main( void );
};
#endif