volta.h
changeset 12 191b3c25974a
parent 11 9aa5114326e8
child 13 23a242d7b7fa
equal deleted inserted replaced
11:9aa5114326e8 12:191b3c25974a
    89  *
    89  *
    90  */
    90  */
    91 typedef struct request {
    91 typedef struct request {
    92 	char   *scheme;
    92 	char   *scheme;
    93 	char   *host;
    93 	char   *host;
       
    94 	char   *tld;
    94 	char   *path;
    95 	char   *path;
    95 	char   *port;
    96 	char   *port;
    96 	struct in_addr *client_ip;
    97 	struct in_addr *client_ip;
    97 	char   *user;
    98 	char   *user;
    98 	char   *method;
    99 	char   *method;
   120  */
   121  */
   121 int getopt( int, char * const [], const char *);
   122 int getopt( int, char * const [], const char *);
   122 
   123 
   123 void usage( char * );
   124 void usage( char * );
   124 void debug( int, char *, int, const char *, ... );
   125 void debug( int, char *, int, const char *, ... );
       
   126 void out( const char * );
       
   127 void reverse_str( char * );
   125 void report_speed( void );
   128 void report_speed( void );
   126 char *slurp_file( char * );
   129 char *slurp_file( char * );
   127 char *extend_line( char *, const char * );
   130 char *extend_line( char *, const char * );
   128 char *copy_string_token( char *, unsigned short int );
   131 char *copy_string_token( char *, unsigned short int );
   129 struct in_addr *copy_ipv4_token( char *, unsigned short int );
   132 struct in_addr *copy_ipv4_token( char *, unsigned short int );
   131 int accept_loop( void );
   134 int accept_loop( void );
   132 void process( char * );
   135 void process( char * );
   133 request *parse( char * );
   136 request *parse( char * );
   134 request *init_request( void );
   137 request *init_request( void );
   135 void populate_request( request * );
   138 void populate_request( request * );
       
   139 void parse_tld( request * );
   136 void cleanup_request( request * );
   140 void cleanup_request( request * );
   137 
   141 
   138 #endif
   142 #endif
   139 
   143