From: nishi Date: Wed, 14 Feb 2024 05:16:07 +0000 (+0000) Subject: adding nntp support X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ddc218efadd7d0403bebf9e07161a7f1e52d340d;p=libw3.git adding nntp support git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@215 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Library/Core.c b/Library/Core.c index 6e78d3b..3ad58df 100644 --- a/Library/Core.c +++ b/Library/Core.c @@ -10,6 +10,7 @@ #include "W3Finger.h" #include "W3Gopher.h" #include "W3HTTP.h" +#include "W3NNTP.h" #include "W3Nex.h" #include "W3POP3.h" #ifdef SSL_SUPPORT @@ -94,6 +95,7 @@ struct W3* W3_Create(const char* protocol, const char* hostname, int port) { } else if(strcmp(protocol, "gopher") == 0) { } else if(strcmp(protocol, "pop3") == 0) { } else if(strcmp(protocol, "ftp") == 0) { + } else if(strcmp(protocol, "nntp") == 0) { } else { __W3_Debug("Protocol", "Not suppported"); W3_Free(w3); @@ -165,6 +167,8 @@ void W3_Send_Request(struct W3* w3) { __W3_Nex_Request(w3); } else if(strcmp(w3->protocol, "ftp") == 0) { __W3_FTP_Request(w3); + } else if(strcmp(w3->protocol, "nntp") == 0) { + __W3_NNTP_Request(w3); } else if(strcmp(w3->protocol, "file") == 0) { __W3_File_Request(w3); } diff --git a/Library/Makefile b/Library/Makefile index 5324097..f809b9c 100644 --- a/Library/Makefile +++ b/Library/Makefile @@ -1,7 +1,7 @@ # $Id$ .PHONY: clean install -OBJS = ./Core.o ./Util.o ./DNS.o ./HTTP.o ./Gopher.o ./POP3.o ./Finger.o ./File.o ./Nex.o ./FTP.o ./URL.o ./Tag.o +OBJS = ./Core.o ./Util.o ./DNS.o ./HTTP.o ./Gopher.o ./POP3.o ./Finger.o ./File.o ./Nex.o ./FTP.o ./NNTP.o ./URL.o ./Tag.o ifeq ($(TCL),YES) OBJS += ./Tcl.o diff --git a/W3Version.h.p b/W3Version.h.p index 81d7988..8108a55 100644 --- a/W3Version.h.p +++ b/W3Version.h.p @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "2.11B" \ +#define LIBW3_VERSION "2.12" \ SUFFIX #ifdef __cplusplus