OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
sockets
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
11
#include <
ossim/base/ossimConstants.h
>
12
#include <
ossim/base/ossimFilename.h
>
13
21
class
OSSIM_DLL
ossimToolServer
22
{
23
public
:
24
ossimToolServer
();
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
39
int
m_svrsockfd
;
40
int
m_clisockfd
;
41
char
*
m_buffer
;
42
};
43
44
45
#endif
ossimToolServer::m_svrsockfd
int m_svrsockfd
Definition:
ossimToolServer.h:39
ossimConstants.h
ossimToolServer::m_clisockfd
int m_clisockfd
Definition:
ossimToolServer.h:40
ossimToolServer
Utility class provides the server interface to ossimTool-derived functionality via TCP sockets Result...
Definition:
ossimToolServer.h:21
ossimToolServer::m_buffer
char * m_buffer
Definition:
ossimToolServer.h:41
ossimFilename
Definition:
ossimFilename.h:20
ossimFilename.h
OSSIM_DLL
#define OSSIM_DLL
Definition:
ossimConstants.h:72
ossimString
Definition:
ossimString.h:22
Generated on Fri Aug 3 2018 08:46:54 for OSSIM - Open Source Software Image Map by
1.8.14