OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimToolServer.h
Go to the documentation of this file.
1 //**************************************************************************************************
2 //
3 // OSSIM Open Source Geospatial Data Processing Library
4 // See top level LICENSE.txt file for license information
5 //
6 //**************************************************************************************************
7 
8 #ifndef ossimToolServer_HEADER
9 #define ossimToolServer_HEADER 1
10 
13 
22 {
23 public:
25  ~ossimToolServer();
26  void startListening(const char* portid);
27 
28 private:
29  void initSocket(const char* portid);
30  bool processOssimRequest(struct sockaddr_in& cli_addr);
31  bool runCommand(ossimString& command);
32  void writeSocket(const char* buf, int bufsize);
33  bool sendFile(const ossimFilename& fname);
34  void error(const char* msg);
35  bool acknowledgeRcvd();
36 
37  static void sigchld_handler(int s);
38 
41  char* m_buffer;
42 };
43 
44 
45 #endif
Utility class provides the server interface to ossimTool-derived functionality via TCP sockets Result...
#define OSSIM_DLL