ZOO-Project: server_internal.c File Reference
ZOO-Project
server_internal.c File Reference
#include "server_internal.h"
#include "service_internal.h"
#include "response_print.h"
#include "mimetypes.h"
#include <dlfcn.h>
#include <uuid/uuid.h>
#include <signal.h>
#include <dirent.h>

Macros

#define PATHBUFSIZE   4096
 

Functions

int zoo_path_compare (char *path1, char *path2)
 
int getVersionId (const char *version)
 Detect WPS version used (1.0.0 or 2.0.0). More...
 
char * get_uuid ()
 Generate a UUID. More...
 
void parseIdentifier (maps *conf, char *conf_dir, char *identifier, char *buffer)
 Extract the service identifier from the full service identifier ie: More...
 
char from_hex (char ch)
 Converts a hex character to its integer value. More...
 
char to_hex (char code)
 Converts an integer value to its hec character. More...
 
char * url_encode (char *str)
 URLEncode an url. More...
 
char * url_decode (char *str)
 Decode an URLEncoded url. More...
 
int isValidLang (maps *conf, const char *str)
 Verify if a given language is listed in the lang list defined in the [main] section of the main.cfg file. More...
 
char * getEncoding (maps *m)
 Access the value of the encoding key in a maps. More...
 
char * getVersion (maps *m)
 Access the value of the version key in a maps. More...
 
void readGeneratedFile (maps *m, map *content, char *filename)
 Read a file generated by a service. More...
 
int writeFile (char *fname, char *val, int length)
 Write a file from value and length. More...
 
void dumpMapsValuesToFiles (maps **main_conf, maps **in)
 Dump all values in a maps as files. More...
 
char * base64 (const char *input, int length)
 Base64 encoding of a char*. More...
 
char * base64d (const char *input, int length, int *red)
 Base64 decoding of a char*. More...
 
void readBase64 (map **in)
 Read Base64 value and split it value by lines of 64 char. More...
 
char * addDefaultValues (maps **out, elements *in, maps *m, int type, map **err)
 Add the default values defined in the zcfg to a maps. More...
 
char * getLastErrorMessage ()
 Access the last error message returned by the OS when trying to dynamically load a shared library. More...
 
void readFinalRes (maps *conf, char *pid, map *statusInfo)
 Read the Result file (.res). More...
 
int isRunning (maps *conf, char *pid)
 Check if a service is running. More...
 
void runGetStatus (maps *conf, char *pid, char *req)
 Run GetStatus requests. More...
 
void runDismiss (maps *conf, char *pid)
 Run Dismiss requests. More...
 
int getServiceFromFile (maps *, const char *, service **)
 Parse a ZCFG file and fill the service structure. More...
 
int readServiceFile (maps *conf, char *file, service **service, char *name)
 Parse the service file using getServiceFromFile or use getServiceFromYAML if YAML support was activated. More...
 
int createRegistry (maps *m, registry **r, char *reg_dir)
 Create the profile registry. More...
 
char * produceErrorMessage (maps *pmConf)
 Create a string containing the basic error message. More...
 

Macro Definition Documentation

#define PATHBUFSIZE   4096

Function Documentation

char* addDefaultValues ( maps **  out,
elements in,
<

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png