File modules/wh/wh_queries.c

  $Revision: 1.12 $

Whois query (wh) - connects to a whois server and returns result
Status: NOT REVIEWED, TESTED
Design and implementation by: Marek Bukowy
Note: still not final. Probably SK calls should be moved to the calling routine

Included Files


Preprocessor definitions

as above - but with connection structures, timeouts, maxlines, etc.

#define MAX_LINE_SIZE 1024


Global Function WH_cd_sock()

 as above - but with connection structures, timeouts, maxlines, etc.
er_ret_t WH_cd_sock ( sk_conn_st* out_cd, char* hostname, unsigned port, char* query, unsigned maxlines, unsigned timeout )
Calls: SK_cd_close()modules/sk/cd_socket.c
  SK_cd_free()modules/sk/cd_socket.c
  SK_cd_gets()modules/sk/cd_socket.c
  SK_cd_make()modules/sk/cd_socket.c
  SK_cd_puts()modules/sk/cd_socket.c
  SK_connect()modules/sk/sk_socket.c
  fprintf()
Called by: run_referral()modules/qi/query_instructions.c