/********************************************************
 * client.h
 *
 * These routines handle all of the communication between
 * the algorithm and the data set oracle.
 *
 * Sixth Annual DIMACS Implementation Challenge
 * Author:  Michael Goldwasser (wass@cs.princeton.edu)
 * Created: Jan 16, 1998
 *******************************************************/

#ifndef _CLIENT
#define _CLIENT

#include "oracle.h" 


/********************************************************
 * Oracle*  OracleConnect(char* host, int port)
 *
 * Parameters:
 *   char* host --- the machine on which the oracle is running
 *   int port   --- the port number being used by the oracle
 *
 * Returns:
 *   A pointer to an oracle connection
 *
 * Description:
 *   This routine establishes a connection with a server acting
 *   as an oracle for a data set.  The returned object can now be
 *   used with other routines to query the oracle.
 *  
 *******************************************************/
Oracle*  OracleConnect(char* host, int port);


/********************************************************
 * void OracleClose(Oracle* ora)
 *
 * Parameters:
 *   Oracle* ora --- an oracle connection
 *
 * Description:
 *   Closes the connection.
 *  
 *******************************************************/
void OracleClose(Oracle* ora);

 
#endif
