Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Files | Data Structures | Typedefs | Enumerations | Functions
Command line interface internal

Files

file  afw_command.c
 Adaptive Framework command line interface.
 
file  afw_command_internal.h
 Adaptive Framework afw command internal header.
 
file  afw_command_local_parse.c
 Implementation for interface afw_command_local.
 
file  afw_command_local_parse.h
 Parse function to support afw command local server.
 
file  afw_command_local_request.c
 Implementation for interface afw_command_local.
 
file  afw_command_local_request.h
 Implementation for interface afw_command_local.
 
file  afw_command_local_server.c
 Implementation for interface afw_command_local.
 
file  afw_command_local_server.h
 Implementation for interface afw_command_local.
 

Data Structures

struct  afw_command_self_s
 Self typedef for afw_command self. More...
 
struct  afw_command_local_parse_t
 
struct  afw_command_local_request_self_s
 Self typedef for afw_command_local implementation of afw_request. More...
 
struct  afw_command_local_server_self_s
 Self typedef for afw_command_local implementation of afw_server. More...
 

Typedefs

typedef struct afw_command_self_s afw_command_self_t
 Self typedef for afw_command self.
 
typedef struct afw_command_local_request_self_s afw_command_local_request_self_t
 Self typedef for afw_command_local implementation of afw_request.
 
typedef struct afw_command_local_server_self_s afw_command_local_server_self_t
 Self typedef for afw_command_local implementation of afw_server.
 

Enumerations

enum  afw_command_local_parse_token_type_t {
  afw_command_local_parse_token_type_invalid , afw_command_local_parse_token_type_colon , afw_command_local_parse_token_type_end_of_input , afw_command_local_parse_token_type_end_of_line ,
  afw_command_local_parse_token_type_string
}
 
enum  afw_command_local_server_mode_t {
  afw_command_local_server_mode_action , afw_command_local_server_mode_action_direct , afw_command_local_server_mode_evaluate , afw_command_local_server_mode_evaluate_direct ,
  afw_command_local_server_mode_http_like
}
 

Functions

int main (int argc, const char *const *argv)
 
 afw_command_local_parse_request (afw_command_local_server_self_t *self, const afw_memory_t **input, afw_xctx_t *xctx)
 
void impl_afw_request_release (const afw_request_t *instance, afw_xctx_t *xctx)
 
void impl_afw_request_set_error_info (const afw_request_t *instance, const afw_object_t *error_info, afw_xctx_t *xctx)
 
void impl_afw_request_read_raw_request_body (const afw_request_t *instance, afw_size_t buffer_size, void *buffer, afw_size_t *size, afw_boolean_t *more_to_read, afw_xctx_t *xctx)
 
void impl_afw_request_set_response_status_code (const afw_request_t *instance, const afw_utf8_t *code, const afw_utf8_t *reason, afw_xctx_t *xctx)
 
void impl_afw_request_write_response_header (const afw_request_t *instance, const afw_utf8_t *name, const afw_utf8_t *value, afw_xctx_t *xctx)
 
void impl_afw_request_write_raw_response_body (const afw_request_t *instance, afw_size_t size, const void *buffer, afw_xctx_t *xctx)
 
void impl_afw_request_flush_response (const afw_request_t *instance, afw_xctx_t *xctx)
 
void impl_afw_request_finish_response (const afw_request_t *instance, afw_xctx_t *xctx)
 
 afw_command_local_request_create (afw_command_local_server_self_t *server_self, const afw_memory_t *body, const afw_object_t *properties, afw_xctx_t *xctx)
 
void impl_afw_server_release (const afw_server_t *instance, afw_xctx_t *xctx)
 
void impl_afw_server_run (const afw_server_t *instance, const afw_request_handler_t *handler, afw_xctx_t *xctx)
 
 afw_command_local_server_create (afw_command_self_t *command_self)
 
 afw_command_local_server_write_result (afw_command_local_server_self_t *self, const char *format,...)
 
 afw_command_local_server_write_error (afw_command_local_server_self_t *self, const afw_error_t *error, afw_xctx_t *xctx)
 
 afw_command_local_server_write_end (afw_command_local_server_self_t *self)
 

Detailed Description

This is internal documentation and thus is not API documentation. Anything can change between releases and even between patches, so do not use outside of the source for this command.

Function Documentation

◆ afw_command_local_server_create()

afw_command_local_server_create ( afw_command_self_t command_self)
Todo:
these should be able to be changed.

Definition at line 468 of file afw_command_local_server.c.