if(status == 200) {
W3_Set_Method(w3, "LIST");
W3_NNTP_Send_Request(w3);
+ }else if(status == 215){
+ W3_Set_Method(w3, "GROUP");
+ W3_Set_Path(w3, w3url->path + 1);
+ W3_NNTP_Send_Request(w3);
+ }else if(status == 211){
+ W3_Set_Method(w3, "HEAD");
+ W3_NNTP_Send_Request(w3);
+ }else if(status == 221){
+ W3_Set_Method(w3, "BODY");
+ W3_NNTP_Send_Request(w3);
+ }else if(status == 222){
+ W3_NNTP_Disconnect(w3);
}
}
if(strcasecmp(w3->method, "LIST") == 0){
(*(int*)w3->generic) |= 1;
__W3_Auto_Write(w3, "LIST\r\n", 6);
+ }else if(strcasecmp(w3->method, "HEAD") == 0){
+ (*(int*)w3->generic) |= 1;
+ __W3_Auto_Write(w3, "HEAD\r\n", 6);
+ }else if(strcasecmp(w3->method, "BODY") == 0){
+ (*(int*)w3->generic) |= 1;
+ __W3_Auto_Write(w3, "BODY\r\n", 6);
+ }else if(strcasecmp(w3->method, "GROUP") == 0){
+ __W3_Auto_Write(w3, "GROUP ", 6);
+ __W3_Auto_Write(w3, w3->path, strlen(w3->path));
+ __W3_Auto_Write(w3, "\r\n", 2);
}
+
+
}
void W3_NNTP_Disconnect(struct W3* w3){
+ __W3_Auto_Write(w3, "QUIT\r\n", 6);
}
mkdir -p w3-$(VERSION)/Example/tclw3/bin
mkdir -p w3-$(VERSION)/Example/tclw3/lib
endif
+ mkdir -p w3-$(VERSION)/Example/nntp-list
mkdir -p w3-$(VERSION)/Example/ftp-list
mkdir -p w3-$(VERSION)/Example/pop3-list
mkdir -p w3-$(VERSION)/Example/interactive
cp ./Example/pop3-list/pop3-list.exe w3-$(VERSION)/Example/pop3-list/
cp ./Example/w3b/w3b.exe w3-$(VERSION)/Example/w3b/
cp ./Example/ftp-list/ftp-list.exe w3-$(VERSION)/Example/ftp-list/
+ cp ./Example/nntp-list/nntp-list.exe w3-$(VERSION)/Example/nntp-list/
ifeq ($(TCL),YES)
cp ./Example/tclw3/tclw3.exe w3-$(VERSION)/Example/tclw3/bin/
cp /usr/$(MINGW)/sys-root/mingw/bin/tcl86.dll w3-$(VERSION)/Example/tclw3/bin/
cp ./Example/pop3-list/pop3-list w3-$(VERSION)/Example/pop3-list/
cp ./Example/w3b/w3b w3-$(VERSION)/Example/w3b/
cp ./Example/ftp-list/ftp-list w3-$(VERSION)/Example/ftp-list/
+ cp ./Example/nntp-list/nntp-list w3-$(VERSION)/Example/nntp-list/
ifeq ($(TCL),YES)
cp ./Example/tclw3/tclw3 w3-$(VERSION)/Example/tclw3/bin/
endif
extern "C" {
#endif
-#define LIBW3_VERSION "2.12F" \
+#define LIBW3_VERSION "2.12G" \
SUFFIX
#ifdef __cplusplus