Main Page | Data Structures | Directories | File List | Data Fields | Globals

karmaquery.c File Reference

main method for command line libkarmaclient interface. More...

#include "ks_array.h"
#include "ks_assoc.h"
#include "ks_bparse.h"
#include "ks_bquery.h"
#include "ks_combination.h"
#include "ks_common.h"
#include "ks_fact.h"
#include "ks_malloc.h"
#include "ks_number.h"
#include "ks_response.h"
#include "ks_string.h"
#include "ks_version.h"
#include "ks_socket.h"

Go to the source code of this file.

Defines

#define MAX_FEEDS   32
#define MAX_FSETS   MAX_FEEDS

Functions

int main (int argc, char **argv)


Detailed Description

main method for command line libkarmaclient interface.

Definition in file karmaquery.c.


Define Documentation

#define MAX_FEEDS   32
 

Definition at line 12 of file karmaquery.c.

Referenced by main().

#define MAX_FSETS   MAX_FEEDS
 

Definition at line 13 of file karmaquery.c.

Referenced by main().


Function Documentation

int main int  argc,
char **  argv
 

Main function, parses command line argument, sends a query to a server, and prints out the response.

Parameters:
argc number of arguments.
argv list of arguments.
Returns:
0 on success, 1 otherwise.

Definition at line 327 of file karmaquery.c.

References ks_array_add(), ks_array_free(), ks_array_length(), ks_array_new(), ks_bquery_composite_add(), ks_bquery_feed_add(), ks_bquery_flags_set(), ks_bquery_free(), ks_bquery_new(), KS_FL_FACTS, KS_IDT_DOMAIN, KS_IDT_EMAIL, KS_IDT_IP4, KS_IDT_IP4_ADDRESS, KS_IDT_IP6, KS_IDT_URL, KS_QUERY_HOST_DEFAULT, KS_QUERY_PORT_DEFAULT, ks_response_free(), ks_socket_ask(), ks_socket_connect(), ks_socket_free(), ks_socket_new(), ks_socket_set_auth(), MAX_FEEDS, and MAX_FSETS.


Generated on Tue Aug 7 21:11:31 2007 for libkarmaclient by  doxygen 1.4.4