1 #ifndef _SERIALCONTROL_H_
2 #define _SERIALCONTROL_H_
11 #include <sys/signal.h>
12 #include <sys/types.h>
14 #include <sys/ioctl.h>
16 #include "libutil/Log.h"
18 #include "motecontrol/localconstants.h"
20 namespace remote
{ namespace diku_mch
{
22 using namespace protocols
;
23 using namespace protocols::motecontrol
;
33 bool runChild(char * const args
[], char * const envp
[]);
34 result_t
getChildResult();
35 result_t
cancelProgramming();
39 ssize_t
readBuf(char *buf
, size_t len
);
40 ssize_t
writeBuf(const char *buf
, size_t len
);
43 const std::string
& getTty();
47 void cleanUpProgram();
51 bool isRunning
, portIsOpen
;
55 struct termios oldsertio
;