]> Nishi Git Mirror - libw3.git/commitdiff
finger protocol
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Tue, 13 Feb 2024 02:34:27 +0000 (02:34 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Tue, 13 Feb 2024 02:34:27 +0000 (02:34 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@206 d27a3e52-49c5-7645-884c-6793ebffc270

Library/Core.c
Library/Makefile
Library/URL.c
W3Version.h.p

index 513c634da39766ea9edf79ac4661425f7012e532..b466570a5abfd91f4080d00c539bfe6bf3f966b7 100644 (file)
@@ -9,6 +9,7 @@
 #include "W3Gopher.h"
 #include "W3HTTP.h"
 #include "W3POP3.h"
+#include "W3Finger.h"
 #ifdef SSL_SUPPORT
 #include "W3Gemini.h"
 #endif
@@ -86,6 +87,7 @@ struct W3* W3_Create(const char* protocol, const char* hostname, int port) {
                } else if(strcmp(protocol, "gemini") == 0) {
                } else if(strcmp(protocol, "gophers") == 0) {
 #endif
+               } else if(strcmp(protocol, "finger") == 0) {
                } else if(strcmp(protocol, "gopher") == 0) {
                } else if(strcmp(protocol, "pop3") == 0) {
                } else {
@@ -153,6 +155,8 @@ void W3_Send_Request(struct W3* w3) {
        } else if(strcmp(w3->protocol, "gemini") == 0) {
                __W3_Gemini_Request(w3);
 #endif
+       } else if(strcmp(w3->protocol, "finger") == 0) {
+               __W3_Finger_Request(w3);
        } else if(strcmp(w3->protocol, "file") == 0) {
                __W3_File_Request(w3);
        }
index f7a659244e7b6dbb4e220f7d1c35c315cf1c0848..5672b01c1de2a6155955524bcee156af868d62df 100644 (file)
@@ -1,7 +1,7 @@
 # $Id$
 .PHONY: clean install
 
-OBJS = ./Core.o ./Util.o ./DNS.o ./HTTP.o ./Gopher.o ./POP3.o ./File.o ./URL.o ./Tag.o
+OBJS = ./Core.o ./Util.o ./DNS.o ./HTTP.o ./Gopher.o ./POP3.o ./Finger.o ./File.o ./URL.o ./Tag.o
 
 ifeq ($(TCL),YES)
 OBJS += ./Tcl.o
index 459b1aa341c80b533da4d190bc2124915220125c..45a579adbb103173e81bed260723459c9f7aa807 100644 (file)
@@ -62,7 +62,10 @@ struct W3URL* W3_Parse_URL(const char* _url) {
                                        r->port = 70;
                                } else if(strcmp(r->protocol, "gemini") == 0) {
                                        r->port = 1965;
+                               } else if(strcmp(r->protocol, "finger") == 0) {
+                                       r->port = 79;
                                }
+
                        }
                        r->host = __W3_Strdup(url + start);
                        str = malloc(strlen(r->host) + 64);
index e235c3ce474d3bfff680eeb7aeecfe751e677692..4bcd77a66b8b8e4602e06673d6233e168239e0fe 100644 (file)
@@ -6,7 +6,7 @@
 extern "C" {
 #endif
 
-#define LIBW3_VERSION "2.7" \
+#define LIBW3_VERSION "2.8" \
 SUFFIX
 
 #ifdef __cplusplus