yumapro  24.10-11
YumaPro SDK
Loading...
Searching...
No Matches
subsys_cb_t Struct Reference

one subsystem control block for session More...

#include <subsys_util.h>

Data Fields

const char * request_uri
 request URI if a RESTCONF session
 
const char * request_method
 request method if a RESTCONF session
 
const char * content_type
 content-type if a RESTCONF session
 
const char * content_length
 Content-Length if a RESTCONF session.
 
const char * modified_since
 Modified-Since if a RESTCONF session.
 
const char * unmodified_since
 Unmodified-Since if a RESTCONF session.
 
const char * match
 Match if a RESTCONF session.
 
const char * none_match
 None-Match if a RESTCONF session.
 
const char * http_accept
 Accept a RESTCONF session.
 
const char * message_id
 Message-ID if a RESTCONF session.
 
const char * user
 User ID for the session.
 
const char * ha_server_id
 The HA server-id.
 
char ** envp
 Environment pointer poassed tp main The fastcgi wrapper on lighttpd replaces the environment variables that are retrieved with the getenv() funtion. More...
 
const char * ha_server_addr
 YP-HA support; this address will override the AF_LOCAL or the TCP socket file read by subsys_info_read. More...
 
uint16 ha_server_port
 HA server port number The ha_server_port is also used by the extern tcp-ncx mode (extern_mode == TRUE)
 
subsys_stdin_fn_t stdin_fn
 override STDIN function
 
subsys_stdout_fn_t stdout_fn
 override STDOUT function
 
int32 content_len
 content length
 
char * server_root_mapfile
 server root ID string
 
char * server_root
 server root ID string
 
boolean server_root_from_env
 server root from ENV
 
char * client_addr
 client address
 
char * port
 server port
 
char * server_addr
 server address from SSH_CONNECTION
 
int ncxsock
 socket number
 
boolean ncxconnect
 Use ncxconnect.
 
boolean nonblocking
 Use non-blocking.
 
boolean nonblocking_set_ok
 Flag non-blocking failed.
 
boolean no_connect
 flag no connection
 
boolean yp_ha_mode
 flag YP-HA mode
 
boolean extern_mode
 flag external mode
 
proto_id_t proto_id
 protocol in use
 
const char * subsys_id
 subsystem ID to use
 
int traceLevel
 debug trace level set (0 - 3)
 
FILE * errfile
 error file
 
fd_set fds
 file descriptors
 
char msgbuff [SUBSYS_BUFFLEN]
 message buffer
 

Detailed Description

one subsystem control block for session

Field Documentation

◆ envp

char** envp

Environment pointer poassed tp main The fastcgi wrapper on lighttpd replaces the environment variables that are retrieved with the getenv() funtion.

This causes the environment variables passed to the restconf binary program to be much different than the 'envp' or 'environ' pointers passed in C. The custom variable SSE_KEEPALIVE is not found on lighttpd with getenv. Special hack: search the envp for this important parameter. Used in read-only mode even though not const.

◆ ha_server_addr

const char* ha_server_addr

YP-HA support; this address will override the AF_LOCAL or the TCP socket file read by subsys_info_read.

The ha_server_addr is also used by the extern tcp-ncx mode (extern_mode == TRUE)


The documentation for this struct was generated from the following file: