Electric Tiger DAQ  1.0.0
Data Acquisition Software for the Electric Tiger Experiment
socketcomm.h
1 #ifndef SOCKETCOMM_H
2 #define SOCKETCOMM_H
3 
4 //C System-Headers
5 #include <stdio.h> /* for printf() and fprintf() */
6 #include <sys/types.h> /* for Socket data types */
7 #include <sys/socket.h> /* for socket(), connect(), send(), and recv() */
8 #include <netinet/in.h> /* for IP Socket data types */
9 #include <arpa/inet.h>/* for sockaddr_in and inet_addr() */
10 #include <stdlib.h> /* for atoi() */
11 #include <string.h> /* for memset() */
12 #include <unistd.h> /* for close() */
13 //C++ System header
14 #include <string>
15 //Boost Headers
16 //
17 //Qt Headers
18 //
19 //Project specific headers
20 //
21 
23 {
24 public:
25  explicit SocketComm( std::string host_name, uint port_number );
26  ~SocketComm();
27 
28  void Send( std::string command, std::string terminator="\n" );
29  void SendScl( std::string command );
30 
31  std::string Receive();
32  std::string ReceiveSafe();
33 
34 private:
35 
36 };
37 
38 #endif // SOCKETCOMM_H
Definition: socketcomm.h:22