Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

poslib/server/handlequery.h File Reference

query handling More...

Go to the source code of this file.


Classes

class   pending_query
  class containing query information More...


Variables

DnsMessage *(*  handle_query )(pending_query *query)
  query entry-point function


Detailed Description

query handling

This file contains structures regarding the Posadis query handling architecture.

Definition in file handlequery.h.


Variable Documentation

DnsMessage*(* handle_query)(pending_query *query)
 

query entry-point function

This is the query entry-point function. Servers will set this function pointer to their own function that will handle the queries, prior to starting the server mechanism. This function will be called when a query is received. This can be asynchronously: each query gets its own thread in which it operates. All you have to do is create a DnsMessage with the answer to the query, and return it, or return NULL if you don't want to answer the query at all. Poslib will take care of sending the answer back and managing the socket connection.

Note that if you don't change this, the default handle_query implementation will be used, which always returns NULL .

Parameters:
query  Information about the query (see pending_query).
Returns:
Answer to the query, or NULL if you don't want to answer.

Definition at line 80 of file handlequery.h.


Generated on Fri Dec 24 19:55:15 2004 for Poslib by doxygen 1.3.7