server.h File Reference

#include "../cl/cl.h"
#include "../cqp/corpmanag.h"

Typedefs

Functions

Variables


Typedef Documentation

typedef unsigned char cqi_byte

Function Documentation

int accept_connection ( int  port  ) 
int check_attribute_name ( char *  name  ) 
int check_corpus_name ( char *  name  ) 
int check_subcorpus_name ( char *  name  ) 
char* combine_subcorpus_spec ( char *  corpus_name,
char *  subcorpus_name 
)

References cl_malloc(), and cl_strdup().

Referenced by do_cqi_cqp_query().

int cqi_activate_corpus ( char *  name  ) 
void cqi_command ( int  command  ) 
void cqi_data_bool ( int  n  ) 
void cqi_data_bool_list ( cqi_byte list,
int  length 
)
void cqi_data_byte ( int  n  ) 
void cqi_data_byte_list ( cqi_byte list,
int  length 
)
void cqi_data_int ( int  n  ) 
void cqi_data_int_int ( int  n1,
int  n2 
)
void cqi_data_int_int_int_int ( int  n1,
int  n2,
int  n3,
int  n4 
)
void cqi_data_int_list ( int *  list,
int  length 
)
void cqi_data_string ( char *  str  ) 
void cqi_data_string_list ( char **  list,
int  length 
)
int cqi_drop_attribute ( char *  name  ) 
CorpusList* cqi_find_corpus ( char *  name  ) 
int cqi_flush ( void   ) 
void cqi_general_error ( char *  errstring  ) 
Attribute* cqi_lookup_attribute ( char *  name,
int  type 
)
int cqi_read_bool ( void   ) 
int cqi_read_bool_list ( cqi_byte **  list  ) 
int cqi_read_byte ( void   ) 
int cqi_read_byte_list ( cqi_byte **  list  ) 
int cqi_read_command ( void   ) 

References CQI_PAD, cqi_read_byte(), and server_debug.

Referenced by interpreter(), and main().

int cqi_read_int ( void   ) 
int cqi_read_int_list ( int **  list  ) 
char* cqi_read_string ( void   ) 
int cqi_read_string_list ( char ***  list  ) 
int cqi_read_word ( void   ) 

References cqi_read_byte(), and snoop.

Referenced by cqi_read_string().

int cqi_recv_byte ( void   ) 

References connfd, MSG_WAITALL, and snoop.

Referenced by cqi_read_bool(), and cqi_read_byte().

int cqi_recv_bytes ( cqi_byte buf,
int  n 
)

References connfd, MSG_WAITALL, and snoop.

Referenced by cqi_read_string().

int cqi_send_byte ( int  n  ) 

References conn_out, and snoop.

Referenced by cqi_data_bool(), cqi_data_byte(), and cqi_send_byte_list().

int cqi_send_byte_list ( cqi_byte list,
int  length 
)
int cqi_send_int ( int  n  ) 
int cqi_send_int_list ( int *  list,
int  length 
)

References cqi_send_int().

Referenced by cqi_data_int_list().

int cqi_send_string ( char *  str  ) 
int cqi_send_string_list ( char **  list,
int  length 
)

References cqi_send_int(), and cqi_send_string().

Referenced by cqi_data_string_list().

int cqi_send_word ( int  n  ) 
void free_attribute_hash ( void   ) 

References att_hashtable::space.

void make_attribute_hash ( int  size  ) 
int split_attribute_spec ( char *  spec,
char **  corpus_name,
char **  attribute_name 
)
int split_subcorpus_spec ( char *  spec,
char **  corpus_name,
char **  subcorpus_name 
)

Variable Documentation

int cqi_errno

Referenced by cqi_general_error(), and interpreter().


Generated on Sun Feb 28 18:08:04 2010 for CWB by  doxygen 1.6.1