version 2.52, 1996/03/04 03:12:51
|
version 2.53, 1996/04/12 17:47:27
|
Line 3
|
Line 3
|
** |
** |
** (c) COPYRIGHT MIT 1995. |
** (c) COPYRIGHT MIT 1995. |
** Please first read the full copyright statement in the file COPYRIGH. |
** Please first read the full copyright statement in the file COPYRIGH. |
|
** @(#) $Id$ |
** |
** |
** Define a basic set of suffixes and presentations |
** Define a basic set of suffixes and presentations |
*/ |
*/ |
Line 55 PUBLIC void HTConverterInit (HTList * c)
|
Line 56 PUBLIC void HTConverterInit (HTList * c)
|
#if 0 |
#if 0 |
HTConversion_add(c,"text/x-gopher", "www/present", HTGopherMenu, 1.0, 0.0, 0.0); |
HTConversion_add(c,"text/x-gopher", "www/present", HTGopherMenu, 1.0, 0.0, 0.0); |
HTConversion_add(c,"text/x-cso", "www/present", HTGopherCSO, 1.0, 0.0, 0.0); |
HTConversion_add(c,"text/x-cso", "www/present", HTGopherCSO, 1.0, 0.0, 0.0); |
#endif |
|
HTConversion_add(c,"text/x-nntp-list", "*/*", HTNewsList, 1.0, 0.0, 0.0); |
HTConversion_add(c,"text/x-nntp-list", "*/*", HTNewsList, 1.0, 0.0, 0.0); |
HTConversion_add(c,"text/x-nntp-over", "*/*", HTNewsGroup, 1.0, 0.0, 0.0); |
HTConversion_add(c,"text/x-nntp-over", "*/*", HTNewsGroup, 1.0, 0.0, 0.0); |
HTConversion_add(c,"text/x-wais-source", "*/*", HTWSRCConvert, 1.0, 0.0, 0.0); |
HTConversion_add(c,"text/x-wais-source", "*/*", HTWSRCConvert, 1.0, 0.0, 0.0); |
|
#endif |
|
|
/* |
/* |
** We also register a special content type guess stream that can figure out |
** We also register a special content type guess stream that can figure out |
Line 149 PUBLIC void HTAlertInit (void)
|
Line 150 PUBLIC void HTAlertInit (void)
|
HTAlert_add(HTPromptUsernameAndPassword, HT_A_USER_PW); |
HTAlert_add(HTPromptUsernameAndPassword, HT_A_USER_PW); |
} |
} |
|
|
|
#if 0 |
|
/* REGISTER ALL KNOWN TRANSPORTS IN THE LIBRARY |
|
** -------------------------------------------- |
|
** Not done automaticly - may be done by application! |
|
*/ |
|
PUBLIC void HTTransportInit (void) |
|
{ |
|
HTTransport_add("tcp_buffered", NO, HTLoadFTP, NULL); |
|
} |
|
#endif |
|
|
/* REGISTER ALL KNOWN PROTOCOLS IN THE LIBRARY |
/* REGISTER ALL KNOWN PROTOCOLS IN THE LIBRARY |
** ------------------------------------------- |
** ------------------------------------------- |
Line 157 PUBLIC void HTAlertInit (void)
|
Line 168 PUBLIC void HTAlertInit (void)
|
PUBLIC void HTAccessInit (void) |
PUBLIC void HTAccessInit (void) |
{ |
{ |
#ifndef DECNET |
#ifndef DECNET |
HTProtocol_add("ftp", NO, HTLoadFTP, NULL); |
HTProtocol_add("ftp", "tcp", NO, HTLoadFTP, NULL); |
HTProtocol_add("nntp", NO, HTLoadNews, NULL); |
HTProtocol_add("nntp", "tcp", NO, HTLoadNews, NULL); |
HTProtocol_add("news", NO, HTLoadNews, NULL); |
HTProtocol_add("news", "tcp", NO, HTLoadNews, NULL); |
HTProtocol_add("gopher", NO, HTLoadGopher, NULL); |
HTProtocol_add("gopher", "tcp", NO, HTLoadGopher, NULL); |
#ifdef HT_DIRECT_WAIS |
#ifdef HT_DIRECT_WAIS |
HTProtocol_add("wais", YES, HTLoadWAIS, NULL); |
HTProtocol_add("wais", "", YES, HTLoadWAIS, NULL); |
#endif |
#endif |
#endif /* DECNET */ |
#endif /* DECNET */ |
|
|
HTProtocol_add("http", NO, HTLoadHTTP, NULL); |
HTProtocol_add("http", "tcp", NO, HTLoadHTTP, NULL); |
HTProtocol_add("file", NO, HTLoadFile, NULL); |
HTProtocol_add("file", "local", NO, HTLoadFile, NULL); |
HTProtocol_add("telnet", YES, HTLoadTelnet, NULL); |
HTProtocol_add("telnet", "", YES, HTLoadTelnet, NULL); |
HTProtocol_add("tn3270", YES, HTLoadTelnet, NULL); |
HTProtocol_add("tn3270", "", YES, HTLoadTelnet, NULL); |
HTProtocol_add("rlogin", YES, HTLoadTelnet, NULL); |
HTProtocol_add("rlogin", "", YES, HTLoadTelnet, NULL); |
} |
} |
|
|
#if 0 |
#if 0 |