Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

conn_handler.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                                conn_handler.h
00003                              -------------------
00004     begin                : Thu Nov 15 2001
00005     copyright            : (C) 2001-2002 by Christian Hoenig & Gunter Ohrner
00006     email                : pdepp@CustomCDROM.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00023 #ifndef CONNHANDLER_H_FLAG
00024 #define CONNHANDLER_H_FLAG
00025 
00026 #include "common.h"
00027 
00028 #include <sys/types.h>
00029 #include <time.h>
00030 
00032 struct ConnHandler;
00034 typedef struct ConnHandler* ConnHandler;
00035 
00036 
00037 // ****************************************************************************
00038 
00044 int chModulePreInit();
00045 
00051 int chModuleTerminate();
00052 
00053 
00054 // ****************************************************************************
00055 
00066 ConnHandler chInit(int server_socket);
00067 
00075 int chGetSocket(const ConnHandler this);
00076 
00077 // return the last time where data was exchanged
00088 time_t chGetStamp(const ConnHandler this);
00089 
00096 time_t chgetStamp(const ConnHandler this);
00097 
00107 int chReceive(ConnHandler this);
00108 
00116 int chIsDataPending(const ConnHandler this);
00117 
00126 int chSend(ConnHandler this);
00127 
00139 int chProcess(ConnHandler this);
00140 
00147 int chGetError(const ConnHandler this);
00148 
00157 int chTerminate(ConnHandler this);
00158 
00159 #endif

Generated on Fri Jan 25 22:40:30 2002 for PDepp Webserver by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001