This file is indexed.

/usr/include/ossim/sockets/ossimToolServer.h is in libossim-dev 2.2.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
34
35
36
37
38
39
40
41
42
43
44
45
//**************************************************************************************************
//
//     OSSIM Open Source Geospatial Data Processing Library
//     See top level LICENSE.txt file for license information
//
//**************************************************************************************************

#ifndef ossimToolServer_HEADER
#define ossimToolServer_HEADER 1

#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimFilename.h>

/**
 * Utility class provides the server interface to ossimTool-derived functionality via TCP sockets
 * Results are returned either as streamed text (for non-image responses such as image info) or
 * streamed binary file representing imagery or vector products. Clients interfacing to this class
 * should know the commands available (or execute the command "help" and view the text response).
 * @see ossimToolClient for concrete client implementation.
 */
class OSSIM_DLL ossimToolServer
{
public:
   ossimToolServer();
   ~ossimToolServer();
   void startListening(const char* portid);

private:
   void initSocket(const char* portid);
   bool processOssimRequest(struct sockaddr_in& cli_addr);
   bool runCommand(ossimString& command);
   void writeSocket(const char* buf, int bufsize);
   bool sendFile(const ossimFilename& fname);
   void error(const char* msg);
   bool acknowledgeRcvd();

   static void sigchld_handler(int s);

   int m_svrsockfd;
   int m_clisockfd;
   char* m_buffer;
};


#endif