yumapro  24.10-2
YumaPro SDK
Loading...
Searching...
No Matches
subsys_util.h File Reference

Thin client IO handler for YumaPro server (utility functions) More...

#include "subsystem.h"
#include "status.h"
#include "subsys_magic.h"
Include dependency graph for subsys_util.h:

Go to the source code of this file.

Data Structures

struct  subsys_cb_t
 one subsystem control block for session More...
 

Macros

#define SERVER_MAP_FILE_LINELEN   1024
 the server root mapfile lines can be 1023 chars max plus 1 char for the terminating zero
 
#define SERVER_MAP_WILDCARD   "*"
 the server root line entry wildcard is a single '*' char
 
#define SERVER_MAP_ID_MAXLEN   64
 matches the NcxName maximum length
 

Functions

status_t get_ssh_parms (subsys_cb_t *cb)
 Get the SSH environment parameters. More...
 
status_t get_server_root_mapfile (subsys_cb_t *cb)
 Get the name of the server root mapfile set. More...
 
status_t start_connection (subsys_cb_t *cb)
 Start the connection to the server. More...
 
status_t send_cli_ncxconnect (subsys_cb_t *cb)
 Send the <ncx-connect> message to the ncxserver for CLI protocol. More...
 
void init_subsys_cb (subsys_cb_t *cb)
 Initialize the fields of a subsystem control block. More...
 
void clean_subsys_cb (subsys_cb_t *cb)
 Clean the fields of a subsystem control block. More...
 
void configure_cli_parms (subsys_cb_t *cb, int argc, char **argv)
 Configure CLI parameters. More...
 
status_t start_subsys_ypshell (int *retfd)
 Start the subsystem for yp-shell. More...
 
status_t start_subsys_tcp_ncx (int *retfd, const char *user)
 Start the subsystem for a tcp-ncx transport connection. More...
 
status_t start_subsys_extern_tcp_ncx (int *retfd, const char *user, const char *addr, unsigned int portnum)
 Start the subsystem to connect to an external tcp-ncx socket. More...
 

Detailed Description

Thin client IO handler for YumaPro server (utility functions)