w3client.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) by Christian Gosch.
00003 
00004     This file is part of w3server, a very small HTTP(-subset) server.
00005 
00006     w3server is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     Foobar is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with Foobar; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 */
00025 #ifndef __W3CLIENT_H__
00026 #define __W3CLIENT_H__
00027 
00028 #include <w3types.h>
00029 #include <w3thread.h>
00030 
00036 struct  clientGlobalStruct {
00037   w3Thread **threads;
00038   int numOfThreads;
00039   char *hostname;
00040   char *lastpath;
00041   int port;
00042 };
00043 
00047 void w3ClientInit ();
00048 
00056 boolean w3ClientConnect (w3ClientConnection *con);
00057 
00066 boolean w3ClientGetDocument (w3Document *doc);
00067 
00073 boolean w3ClientDisconnect (w3ClientConnection *con);
00074 
00075 
00076 boolean w3ClientGetImagePath (char *uriString, boolean withoutHostname);
00077 
00090 boolean w3ClientDocToFile (const char* uriString, const char *filename, int port);
00091 
00099 boolean w3ClientDocToFileMT (const char* uriString, const char *filename, int port);
00100 
00104 boolean w3ClientJoinAllThreads ();
00105 
00109 boolean w3ClientDestroyAllThreads ();
00110 
00115 #endif
00116 
00117 
00118 
00119 
00120 

Generated on Thu Jul 6 15:37:30 2006 for w3server by  doxygen 1.4.6