wvhttpcomponent.cc
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
#include "wvhttppool.h"
00008
#include "wvmoniker.h"
00009
#include "wvistreamlist.h"
00010
00011 static WvHttpPool *
pool;
00012
00013
00014 static void pool_init()
00015 {
00016
00017
if (!
pool)
00018 {
00019
pool =
new WvHttpPool;
00020 WvIStreamList::globallist.append(
pool,
false);
00021 }
00022 }
00023
00024
00025 static IWvStream *
creator(
WvStringParm s,
IObject *,
void *)
00026 {
00027
pool_init();
00028
return pool->
addurl(
WvString(
"http:%s", s),
"",
false);
00029 }
00030
00031
00032 static IWvStream *
screator(
WvStringParm s,
IObject *,
void *)
00033 {
00034
pool_init();
00035
return pool->
addurl(
WvString(
"https:%s", s),
"",
false);
00036 }
00037
00038
00039
static WvMoniker<IWvStream> reg(
"http", creator);
00040
static WvMoniker<IWvStream> regs(
"https", screator);
Generated on Tue Oct 5 01:09:20 2004 for WvStreams by
1.3.7