‚T‚¿‚á‚ñ‚Ë‚é šƒXƒ}ƒz”Łš ¡ŒfŽ¦”‚ɖ߂遡 ‘S•” 1- ÅV50  

¡ ‚±‚̃XƒŒƒbƒh‚͉ߋŽƒƒO‘qŒÉ‚ÉŠi”[‚³‚ê‚Ä‚¢‚Ü‚·

i M.ÍLjƒ@C‚Å(@LúDM)ƒuƒ‰ƒEƒU

1 F‚¨‚É‚¬‚è‚Ì‚Ì‚½‚ñ ŸqCUWFi42uI F03/02/05 01:49
i M.ÍLjƒ@C‚Å(@LúDM)ƒuƒ‰ƒEƒUì‚è‚È‚³‚¢‚æ

2 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/05 01:50
2

3 F2F03/02/05 01:51
ƒ„ƒ^[‰‚ɃQƒbƒg‚¾

4 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/05 01:53
>2 ‚¨‚ß

5 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/05 01:53
b‚±‚̔‚̓vƒƒOƒ‰ƒ€‚ðì‚él‚Ì‚½‚߂̔‚ł·B
‚Ç‚¤‚¼A‚²Ž©•ª‚ōì‚Á‚Ä‚­‚¾‚³‚¢B

6 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/07 00:06
ˆÉ—\“Œ‚Z—Žqƒ{[ƒg•”‘†’ø“ú

7 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/07 01:41
@ ÈQÈ
@i@LÍMjƒ@‚Ê‚é‚Û

8 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 00:47
‚ ‚È‚¾‚炯‚Å“r’†‚Å‚â‚é‹C‚È‚­‚µ‚½‚à‚Ì
Œ»ÝƒeƒLƒXƒg•\Ž¦‚Ü‚Å
cursesŽg‚Á‚Ä‚é‚Ì‚Éwinsock‚àŽg‚Á‚Ä‚½‚è‚·‚é‚©‚ç(Œã‚Å’¼‚·‚‚à‚肾‚Á‚½)
’¼‚·‚È‚èCygwin‚Æ‚©‚‚©‚¤‚Ȃ肵‚È‚¢‚Æ“®‚©‚È‚¢‚¯‚ǁ«

9 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 00:48
/* main.c */
#include <stdio.h>
#include "get.h"
#include "token.h"
#include "viewer.h"

struct ObjectFile ObjFile;
struct VSCRIPTS *vsrpts;

int main(int argc,char *argv[]){
char CacheFolder[]="./cache/";
unsigned char Done=1;

getInit();
viewerInit();
while(Done){
getMain(argv[1],&ObjFile,CacheFolder);
readdata(ObjFile.FName);
vsrpts=tokenMain();
switch(viwerMain(vsrpts)){
case EXIT:
Done=0;
break;
default :

}
}
viewerExit();
exit(0);
}


10 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 00:50
/* get.h */
#define MAXNUM 255

struct ObjectFile{
char *url;
char Host[MAXNUM];
int nPort;
char FPath[MAXNUM];
char FName[MAXNUM];
};

int getMain(char url[],struct ObjectFile *,char *);
int UrlToken(char url[],struct ObjectFile *);
int GetHostInfo(struct ObjectFile *);
int DefinitionPort(struct ObjectFile *);
int mstderr(int,struct ObjectFile *);
void mstddebug(struct ObjectFile *);


11 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 00:54
/* get.c */

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>

#include <windows.h>
#include <winsock.h>

#define RECVBUF 1024

#include "get.h"

enum ERRID {ERR_URL,ERR_HOST,ERR_SOCKET,ERR_CONNECT,ERR_FDOPEN,ERR_FOPEN};
enum RET_VALUE {FAILED=-1,SUCCESS};
enum PROTOCOL {HTTP,FTP};

struct sockaddr_in target_server;
char ClientName[]="GET";
float version=0.91;
char *recvbuffer=NULL;

int getInit(){
WORD wVersionRequested;
WSADATA wsaData;

wVersionRequested = MAKEWORD(1,1);
WSAStartup(wVersionRequested, &wsaData);
}


12 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 00:57
/* get.c‘±‚« */

int getMain(char url[],struct ObjectFile *ObjFile,char *CFolder){
FILE *fp;
int i=0,flag=0;
SOCKET s;
char buf[MAXNUM],buffer,fflag[4],sfname[MAXNUM];

if(UrlToken(url,ObjFile)==FAILED) return(mstderr(ERR_URL,ObjFile));
if(GetHostInfo(ObjFile)==FAILED) return(mstderr(ERR_HOST,ObjFile));
DefinitionPort(ObjFile);
if ((s=socket(AF_INET,SOCK_STREAM,0))<0) return(mstderr(ERR_SOCKET,ObjFile));
if (connect(s,(struct sockaddr *)&target_server,sizeof(target_server)) == -1) return(mstderr(ERR_CONNECT,ObjFile));
mstddebug(ObjFile);

sprintf(sfname,"%s%s",CFolder,ObjFile->FName);
strcpy(ObjFile->FName,sfname);
if((fp=fopen(sfname,"wb+")) == NULL) return(mstderr(ERR_FOPEN,ObjFile));
sprintf(buf,"GET %s HTTP/1.0\r\nUser-Agent: %s/%f\r\nHost: %s:%d\r\n\r\n",ObjFile->FPath,ClientName,version,ObjFile->Host,ObjFile->nPort);
send(s,buf,strlen(buf),0);


13 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 00:58
/* get.c‘±‚« */
while(recv(s,&buffer,1,0)==1){
if(!flag && (buffer=='\r' || buffer=='\n')){
fflag[i]=buffer;
i++;
if(!strcmp(fflag,"\r\n\r\n") || !strcmp(fflag,"\n\n") || i==4){
flag=1;
continue;
}
}else{
i=0;
memset(fflag,'\0',4);
}
if(flag) fwrite(&buffer,sizeof(char),1,fp);
}
printf("\nƒ_ƒEƒ“ƒ[ƒhŠ®—¹\n");
fclose(fp);
close(s);
}
int DefinitionPort(struct ObjectFile *ObjFile){
struct servent *service;
if(ObjFile->nPort == 0){
service = getservbyname("http","tcp");
if (service!=NULL) ObjFile->nPort=ntohs(service->s_port);
else ObjFile->nPort=80;
}
target_server.sin_port = htons(ObjFile->nPort);
return(SUCCESS);
}


14 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:00
/* get.c‘±‚« */
int GetHostInfo(struct ObjectFile *ObjFile){
struct hostent *servhost;
servhost = gethostbyname(ObjFile->Host);
if (servhost==NULL) return(FAILED);

memset((char*)&target_server,0,sizeof(target_server));
target_server.sin_family = AF_INET;
memmove((char *)&target_server.sin_addr,servhost->h_addr,servhost->h_length);
return(SUCCESS);
}

int UrlToken(char url[],struct ObjectFile *ObjFile){
int itmp;
char *tmp,*tmp2,*tmp_host;

if(!strncmp(url,"http://",7)) tmp=url+7;
else if(!strncmp(url,"ftp://",6)) tmp=url+6;
else return(FAILED);

memset((char*)ObjFile,0,sizeof(struct ObjectFile));
ObjFile->url=strdup(url);

itmp=strchr(tmp,'/')-tmp;
tmp_host=(char *)malloc(itmp+1);
strncpy(tmp_host,tmp,itmp);
tmp_host[itmp]='\0';
if((tmp2=strrchr(tmp_host,':'))!=NULL){
*tmp2='\0';
ObjFile->nPort=atoi(tmp2+1);
}


15 Fget.c‚±‚±‚܂ŁF03/02/08 01:01
/* get.c‘±‚« */
strcpy(ObjFile->Host,tmp_host);

tmp=strchr(tmp,'/');
if(tmp[strlen(tmp)-1]=='/') strcat(tmp,"index.html");
strcpy(ObjFile->FPath,tmp);
tmp2=strrchr(tmp,'/')+1;
strcpy(ObjFile->FName,tmp2);
return SUCCESS;
}

int mstderr(int t,struct ObjectFile *ObjFile){
switch(t){
case ERR_URL : printf("ERROR:•s“KØ‚ÈURL [%s]\n",ObjFile->url); break;
case ERR_HOST : printf("ERROR:•s“KØ‚ȃzƒXƒg–¼ [%s]\n",ObjFile->Host); break;
case ERR_SOCKET : printf("ERROR:Socket for server failed.\n"); break;
case ERR_CONNECT : printf("ERROR:Connect failed.\n"); break;
case ERR_FDOPEN : printf("ERROR:Can't fdopen.\n"); break;
case ERR_FOPEN : printf("ERROR:Can't fopen.\n"); break;
}
return(FAILED);
}
void mstddebug(struct ObjectFile *ObjFile){
printf("URL\t\t:\t%s\n",ObjFile->url);
printf("hostname\t:\t%s\n",ObjFile->Host);
printf("port_num\t:\t%d\n",ObjFile->nPort);
printf("path\t\t:\t%s\n",ObjFile->FPath);
}


16 Ftoken.c‚±‚±‚©‚çF03/02/08 01:11
/* token.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define BUF_LEN2 32768
#define TAGNAMESIZE 256
#define NELEMS(x) (sizeof(x)/sizeof(x[0]))
#define DEF_NSC 10

#include "token.h"
#include "vscript.h"

enum KINDDOC {TAG,BEGINTAG,ENDTAG,DOC,COMMENT};
enum {OFF,ON};
enum { HTML,HEAD,TITLE,BODY,BR,CENTER,HR };
enum TAGTYPE {NEEDEND,NONEND};

typedef struct MODESTACK MODESTACK;
struct MODESTACK{
int align;
MODESTACK *prev;
}*mstack_top=NULL;

typedef struct TAGSTACK TAGSTACK;
struct TAGSTACK{
int tagid;
MODESTACK *mstack;
TAGSTACK *prev;
}*tstack_top=NULL;


17 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:13
/* token.c‘±‚« */
int nstack=0;
int maxstack=0;

struct TAGTABLE{
char name[TAGNAMESIZE];
unsigned char type;
int bvss[5];
int evss[5];
}tagtable[]={
{"html" ,NEEDEND, {NON}, {NON} },
{"head" ,NEEDEND, {NON}, {NON} },
{"meta" ,NONEND, {NON}, {NON} },
{"title" ,NEEDEND, {NON}, {NON} },
{"body" ,NEEDEND, {VABLE,NON}, {VENABLE,NON} },
{"br" ,NONEND, {NEWLINE,NON}, {NON} },
{"center" ,NEEDEND, {ACENTER,NEWLINE,NON}, {NEWLINE,NON} },
{"hr" ,NONEND, {NEWLINE,DLINE,NEWLINE,NON}, {NON} },
{"blockquote" ,NEEDEND, {NON}, {NON} },
{"img" ,NONEND, {NON}, {NON} },
{"a" ,NEEDEND, {TBCOLOR,BUL,NON}, {TECOLOR,EUL,NON} },
{"h1" ,NEEDEND, {NEWLINE,NON}, {NEWLINE,NON} },
{"h2" ,NEEDEND, {NEWLINE,NON}, {NEWLINE,NON} },
{"h3" ,NEEDEND, {NEWLINE,NON}, {NEWLINE,NON} },
{"h4" ,NEEDEND, {NEWLINE,NON}, {NEWLINE,NON} },
{"h5" ,NEEDEND, {NEWLINE,NON}, {NEWLINE,NON} },
{"h6" ,NEEDEND, {NEWLINE,NON}, {NEWLINE,NON} },
{"font" ,NEEDEND, {NON}, {NON} },
{"pre" ,NEEDEND, {NON}, {NON} }
};


18 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:13
/* token.c‘±‚« */
char data[BUF_LEN2];
struct VSCRIPTS tmp_scr={NULL,0,0,NULL,0,0};

void readdata(char *fname){
int i;
char tmpbuf[BUF_LEN2],tmpbuf2[BUF_LEN2];
unsigned char fspace=OFF;
FILE *fp;

memset(data,'\0',BUF_LEN2);
fp=fopen(fname,"r");
while(fgets(tmpbuf2,BUF_LEN2,fp)!=NULL){
nkfsub("s",tmpbuf2,tmpbuf);
for(i=0;i<strlen(tmpbuf);i++){
if(tmpbuf[i]!='\t' && tmpbuf[i]!='\r' && tmpbuf[i]!='\n'){
if(tmpbuf[i]==' '){
if(fspace) continue;
fspace=ON;
}else if(fspace) fspace=OFF;
sprintf(data,"%s%c",data,tmpbuf[i]);
}
}
}
fclose(fp);
}


19 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:15
/* token.c‘±‚« */
char *l2u(char *src,char *tmp){
int i;
for(i=0;src[i]!='\0';i++){
if((src[i]>='a') && (src[i]<='z')){
tmp[i]=src[i] - 0x20;
}else tmp[i]=src[i];
}
return(tmp);
}

int addscript(int tss){
int *tmpip;
if(tmp_scr.vscripts==NULL){
if((tmp_scr.vscripts=(int *)malloc(sizeof(int)*DEF_NSC))==NULL){
fprintf(stderr,"err-test\n");
return 0;
}else tmp_scr.maxscripts=DEF_NSC;
}else if((tmp_scr.maxscripts-tmp_scr.nscripts)==0){
tmpip=(int *)realloc(tmp_scr.vscripts,sizeof(int)*tmp_scr.maxscripts*2);
if(tmpip!=NULL){
tmp_scr.vscripts=tmpip;
tmp_scr.maxscripts*=2;
}else{
fprintf(stderr,"err-test\n");
return 0;
}
}
tmp_scr.vscripts[tmp_scr.nscripts]=tss;
tmp_scr.nscripts++;


20 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:16
/* token.c‘±‚« */
return(1);
}
void mstack_pop(){
MODESTACK *tmpmnode;

if(mstack_top==NULL){
fprintf(stderr,"mstack is empty\n");
}else{
tmpmnode=mstack_top;
mstack_top=mstack_top->prev;
free(tmpmnode);
}
}
MODESTACK *mstack_push(){
int j;
MODESTACK *newmnode;

if((newmnode=(MODESTACK *)malloc(sizeof(MODESTACK)))==NULL) return(NULL);
if(mstack_top==NULL) newmnode->prev=NULL;
else newmnode->prev=mstack_top;
mstack_top=newmnode;
return(newmnode);
}

int tstack_pop(){
int i;
TAGSTACK *tmptnode;



21 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:19
/* token.c‘±‚« */
if(nstack==0){
fprintf(stderr,"tstack is empty\n");
}else{
if(tstack_top[nstack-1].mstack!=NULL) mstack_pop();
if(tstack_top[nstack-1].tagid<NELEMS(tagtable)){
fprintf(stderr,"tpop :%s\n",tagtable[tstack_top[nstack-1].tagid].name);
for(i=0;tagtable[tstack_top[nstack-1].tagid].evss[i]!=NON;i++){
if(addscript(tagtable[tstack_top[nstack-1].tagid].evss[i])==0){
fprintf(stderr,"test1\n");
return(0);
}
}
}else fprintf(stderr,"tpop \n");
nstack--;
}
}
int tstack_push(int id){
int j;
MODESTACK *newmnode;
TAGSTACK *tmptp;

if(tstack_top==NULL){
if((tstack_top=(TAGSTACK *)malloc(sizeof(TAGSTACK)*DEF_NSC))==NULL){
fprintf(stderr,"err-test\n");
return 0;
}else maxstack=DEF_NSC;
}else if((maxstack-nstack)==0){
tmptp=(TAGSTACK *)realloc(tstack_top,sizeof(TAGSTACK)*maxstack*2);
if(tmptp!=NULL){


22 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:20
/* token.c‘±‚« */
tstack_top=tmptp;
maxstack*=2;
}else{
fprintf(stderr,"err-test\n");
return 0;
}
}
tstack_top[nstack].tagid=id;
for(j=0;tagtable[id].bvss[j]!=NON;j++){
if(addscript(tagtable[id].bvss[j])==0){
fprintf(stderr,"test1\n");
return(0);
}
if(tagtable[id].bvss[j]>=ALEFT && tagtable[id].bvss[j]<=ARIGHT){
if((newmnode=mstack_push())==NULL){
fprintf(stderr,"test2\n");
return(0);
}else tstack_top[nstack].mstack=newmnode;
}else tstack_top[nstack].mstack=NULL;
}
if(tagtable[id].bvss[0]==NON) tstack_top[nstack].mstack=NULL;
if(id<NELEMS(tagtable)) fprintf(stderr,"tpush:%s ",tagtable[id].name);
else fprintf(stderr,"tpush ");
nstack++;
return(1);
}
struct VSCRIPTS *tokenMain(){
char *tmp,*tmp2,buffer[BUF_LEN2],**tmpcpp;
unsigned char mode=TAG,fcomment=OFF;


23 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:21
/* token.c‘±‚« */
int k;
memset(buffer,'\0',BUF_LEN2);
for(tmp=data;*tmp!='\0';tmp++){
switch(*tmp){
case '<':
if(!strncmp(tmp,"<!--",4))
fcomment=ON;
if(strlen(buffer)>0){
if(addscript(DOCT)==0) return(NULL);
if(tmp_scr.maxdocs==0){
if((tmp_scr.doctable=(char **)malloc(sizeof(char *)*DEF_NSC))==NULL){
fprintf(stderr,"err-test\n");
return 0;
}else tmp_scr.maxdocs=DEF_NSC;
}else if((tmp_scr.maxdocs-tmp_scr.ndocs)==0){
tmpcpp=(char **)realloc(tmp_scr.doctable,sizeof(char *)*tmp_scr.maxdocs*2);
if(tmpcpp!=NULL){
tmp_scr.doctable=tmpcpp;
tmp_scr.maxdocs*=2;
}else{
fprintf(stderr,"err-test\n");
return 0;
}
}
if(addscript(tmp_scr.ndocs)==0) return(NULL);
tmp_scr.doctable[tmp_scr.ndocs]=strdup(buffer);
tmp_scr.ndocs++;
}
memset(buffer,'\0',BUF_LEN2);


24 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:23
/* token.c‘±‚« */
mode=TAG;
break;
case '>':
{
int i,j=0;
char buffer2[TAGNAMESIZE];
if(buffer[0]=='/'){
mode=ENDTAG;
j=1;
}else mode=BEGINTAG;
for(i=0;i<NELEMS(tagtable);i++){
if((!strncmp(tagtable[i].name,buffer+j,strlen(tagtable[i].name)))
|| (!strncmp(l2u(tagtable[i].name,buffer2),buffer+j,strlen(tagtable[i].name)))){
break;
}
}
if(fcomment) mode=COMMENT;

if(i<NELEMS(tagtable)){
if(mode==ENDTAG) tstack_pop();
else if(mode==BEGINTAG){
if(tagtable[i].type==NEEDEND){
if(!tstack_push(i)){
fprintf(stderr,"err\n");
return(NULL);
}
fprintf(stderr,"%s\n",buffer);
}else{
for(j=0;tagtable[i].bvss[j]!=NON;j++){


25 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:27
/* token.c‘±‚« */
if(addscript(tagtable[i].bvss[j])==0) return(NULL);
}
}
}
}

}
memset(buffer,'\0',BUF_LEN2);
mode=DOC;
fcomment=OFF;
/* ƒ^ƒO–{‘̂ƃIƒvƒVƒ‡ƒ“‚̐؂èo‚µ */
break;
default :
if(fcomment){
char *tmp3;
for(tmp2=tmp,tmp3=strchr(tmp2,'>');;tmp3=strchr(tmp2,'>')){
if(!strncmp(tmp3-2,"-->",3)){
strncpy(buffer,tmp,tmp3-tmp);
tmp=tmp3-1;
break;
}else
tmp2=tmp3+1;
}
}else{
memset(buffer,'\0',BUF_LEN2);
if(mode!=DOC)
tmp2=strchr(tmp,'>');
else
tmp2=strchr(tmp,'<');


26 Ftoken.c‚±‚±‚܂ŁF03/02/08 01:29
/* token.c‘±‚« */
strncpy(buffer,tmp,tmp2-tmp);
tmp=tmp2-1;
}
}
}
return(&tmp_scr);
}


27 Ftoken.hF03/02/08 01:30
/* token.h */
typedef struct TAGVAL TAGVAL;
struct TAGVAL{
int ntag;
char *tmp;
};
struct VSCRIPTS{
int *vscripts;
int nscripts;
int maxscripts;
char **doctable;
int ndocs;
int maxdocs;
};

void readdata(char *);
struct VSCRIPTS *tokenMain();


28 Fviwer.c‚±‚±‚©‚çF03/02/08 01:32
/* viwer.c */
#include <ncurses.h>
#include <sys/types.h>
#include <time.h>

#include "token.h"
#include "viewer.h"

#include "vscript.h"

enum {BEGIN,END};
enum {OFF,ON};

int fbline();
int fwrline();

unsigned char writable=OFF;
int writex=0,writey=0;
unsigned char align=ALEFT;
WINDOW *stdscr;

int viwerMain(struct VSCRIPTS *vscripts){
int i,j,nline,c,x=0,y=0;

for(i=0;i<vscripts->nscripts;i++){
switch(vscripts->vscripts[i]){
case VABLE:
writable=ON;
for(j=i+1,nline=0;j<vscripts->nscripts;j++){
if(vscripts->vscripts[j]==NEWLINE) break;


29 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:35
/* viwer.c‘±‚« */
if(vscripts->vscripts[j]==DOCT){
nline+=strlen(vscripts->doctable[vscripts->vscripts[i+1]]);
j++;
}
}
break;
case NEWLINE:
fbline();
for(j=i+1,nline=0;j<vscripts->nscripts;j++){
if(vscripts->vscripts[j]==NEWLINE) break;
if(vscripts->vscripts[j]==DOCT){
nline+=strlen(vscripts->doctable[vscripts->vscripts[j+1]]);
j++;
}
}
if(align==ALEFT) writex=0;
else if(align==ACENTER){
if(nline>COLS){
}else{
writex=(COLS-nline)/2;
}
}
break;
case ALEFT:
align=ALEFT;
break;
case ACENTER:
align=ACENTER;
break;


30 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:36
/* viwer.c‘±‚« */
case ARIGHT:
align=ARIGHT;
break;
case TBCOLOR:
attron(COLOR_PAIR(1));
break;
case TECOLOR:
attroff(COLOR_PAIR(1));
break;
case BUL:
attron(A_UNDERLINE);
break;
case EUL:
attroff(A_UNDERLINE);
break;
case DOCT:
if(writable==ON){
mvwaddstr(stdscr,writey,writex,vscripts->doctable[vscripts->vscripts[i+1]]);
writex+=strlen(vscripts->doctable[vscripts->vscripts[i+1]]);
}
i++;
break;
case DLINE:
fwrline();
break;
default :
}
if(writey==LINES-1) break;
}


31 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 01:38
/* viwer.c‘±‚« */
wrefresh(stdscr);
keypad(stdscr,TRUE);
wtimeout(stdscr,10);
while(c!='q'){
move(y,x);
c=wgetch(stdscr);
switch(c){
case KEY_UP :
if(y-1>=0) y--;
break;
case KEY_DOWN :
if(y<(LINES-1)) y++;
break;
case KEY_LEFT :
if(x-1>=0) x--;
break;
case KEY_RIGHT :
if(x<(COLS-1)) x++;
break;
default :
}
}
return(EXIT);
}
void viewerInit(){
/*setenv("TERM","kterm-color",1);*/
initscr();
start_color();
noecho();


32 Fviwer.c‚±‚±‚܂ŁF03/02/08 01:39
/* viwer.c‘±‚« */
cbreak();
stdscr = newwin(LINES,COLS,0,0);
init_pair(1,COLOR_CYAN,COLOR_BLACK);
scrollok(stdscr, TRUE);
}
void viewerExit(){
endwin();
}
int fwrline(){
wmove(stdscr,writey,0);
whline(stdscr,'-',COLS);
return(0);
}
int fbline(){
writey++;
return(0);
}


33 Fviwer.hF03/02/08 01:42
/* viwer.h */
enum {EXIT};

int viewerMain(struct VSCRIPTS *);
void viewerExit();
void viewerInit();


34 Fvscript.hF03/02/08 01:43
/* vscript.h */
#if !defined(VSCRIPT)
#define VSCRIPT

enum {NON=-1}; /* ”ÔŒ¢ */
enum {VABLE,VENABLE}; /* ƒhƒLƒ…ƒƒ“ƒg•\Ž¦‚Ì—LŒø‰»E–³Œø‰» */
enum {CCABLE=2,CCENABLE}; /* §Œä•¶Žš‚Ì—LŒø‰»E–³Œø‰» */
enum {NEWLINE=4}; /* ‰üs */
enum {ALEFT=5,ACENTER,ARIGHT}; /* •\Ž¦ˆÊ’u‚̕ύX */
enum {TBCOLOR=8,TECOLOR}; /* F•t‚¯ */
enum {BUL=10,EUL}; /* ƒAƒ“ƒ_[ƒ‰ƒCƒ“ŠJŽnI—¹ */
enum {DOCT=12}; /* ƒhƒLƒ…ƒƒ“ƒgƒe[ƒuƒ‹‚ÌŽQÆ */
enum {DLINE=13}; /* Œrü‚ðˆø‚­ */

#endif


35 Fnkf.cF03/02/08 01:48
nkf.c‚Í‘½•ª‚±‚Á‚©‚çŽæ‚Á‚Ä‚«‚½“zB
«
ttp://www2k.biglobe.ne.jp/~motoi/nkfsub.c

36 FMakefileF03/02/08 01:57
CC = gcc -g
TARGET = bokashi
OBJS = token.o get.o viewer.o nkf.o main.o
LIB = -lncurses -ltermcap -lwsock32

all: $(TARGET)

$(TARGET):$(OBJS)
$(CC) -o $@ $(OBJS) $(LIB)

%.o:%.c
$(CC) -c $< -o $@

clean :
rm -f *.o *.exe



37 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 02:07
ƒIƒiƒj[ƒ\[ƒX‚È‚Ì‚Å
‚à‚¤“‚¢‚ ‚肳‚Ü‚¾

‚ ‚Æ‚Í1‚ª‚Ç‚¤‚É‚©‚·‚é‚©‚àCŒî‚¤ŒäŠú‘ҁII
ƒIƒ‰ƒnÀƒbƒeƒNƒ‹ƒ_DDD


38 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/08 02:36
>8-37
sine


39 F‰c”_·ÞºMC ŸcJTGtEIXl. F03/02/11 17:09
ƒ\[ƒX“Š‚°‰³”ށB

40 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/19 10:53
(@LúDM)ƒmƒ‚â‚®‚â‚®


41 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/24 19:26
Windows native ‚È w3m like ƒuƒ‰ƒEƒU ‚ÍŽù—v‚ª‚ ‚é‚ÆŽv‚¤

42 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/02/24 19:29
http://www.agemasukudasai.com/bloom/

43 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/03/19 05:10
IIIIIIbbbbbbbbbbbbbIIIIIIIIIIIIIIIIIIIIIIIII
cccccccccccc
@@@@@@@@@@@@@@@@@@@@@@^ÜSÜR.
@@@@@@@@@@@@@@@@@@@ @^@@@˜¦@ ..S
@@@@@@@@@@@@@@@@@@@^@@ B l@@@ j
@@@@@@@@@@@@@@@@@@iB...B_ .ƒm BSB...˜¦
@@@@@@@@@@@@@@@@@ @(@_@. @.. Ɂ@@ )
@@@@@@@@@@@@@@@@@@/@@@@ @ @/
@@@@@@@@@@@@@@@@ @/@ƒm ‚µ@@@/
@@@@ ŽOPPPP_@@@@/@j@‚Ɓ@ @/
@@@@@/@@QQQQ|@.@ /@@@@@@/
@@@@ /@@„@@@@@|@@ /@@@ @@/
@@@@/@@/@Ü@@Ü |@@/@@@@@/
@@@@|Q/---(E)--(E) |@ /@ @@@/
@@@@|@(6@@@@‚@ b /@ ..@@/@^ ‚Ç‚¤‚â‚çPPPPPPPPP
@ @ @|@@@@QQQ b/@ @.@/@@ƒ‰´‚Í‘B‚·‚é‚炵‚¢IIIIIII
@@@@_@@_Q/@^@/@@@/@@@@_QQQQQQQQQ
@ƒVƒR@@_QQ_^@@ /@@@/
@@@@@@/@@@@ _@/ .@@/
@ƒVƒR@@i@j@߁@ß/_T ˜¦.../
@@@@@@_ R¤ i@ / @¼//
@@@@@@@ _@R /@¼//
@@@@@@@ i@_‚@@/
@@@@@@@@|@ |‚n›ƒm _
@@@@@@@@|@ |@@@@_ _
@@@@@@@@|@ j@@@@@|@ j
@@@@@@@ /@/@@ @@ /@/
@@@@@@ /@/@@ @ @ ¾
@@@@@@ ¾


44 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/04/03 23:26
¡Œã‚ÉŠú‘Òage

45 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/04/03 23:51
>>8-37=>>44
„¢(߁`ß)„¡ÔÚÔÚ

46 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/04/04 03:27
E‘€ì•û–@ƒJƒXƒ^ƒ}ƒCƒY‰Â”\
E‘¼ƒuƒ‰ƒEƒU‚Ńy[ƒW^ƒŠƒ“ƒNæ‚ð•\Ž¦‚·‚邱‚Æ‚ª‰Â”\
E‘¼ƒ\ƒtƒg‚Ńy[ƒWã^ƒŠƒ“ƒNæ‚̉摜‚≹Šy‚È‚Ç‚ðÄ¶‰Â”\
Eƒe[ƒuƒ‹•\Ž¦^ƒtƒŒ[ƒ€•\Ž¦‚ª‰Â”\
Eƒy[ƒW“ǂݍž‚Ý’†‚ÌŽb’è•\Ž¦‚ª‰Â”\
@ƒe[ƒuƒ‹•`‰æ‚ª—‚ޏꍇ‚͐ݒè‚ÅŽb’è•\Ž¦‚©Š®‘S•\Ž¦‚©‘I‘ð
EƒuƒbƒNƒ}[ƒN‚ɑΉž
EIE‚̃uƒbƒNƒ}[ƒN‚ɑΉž
EŽÀ‚̓^ƒuƒuƒ‰ƒEƒUiCtrl+1,2,3 ...‚Ń^ƒuØ‚è‘Ö‚¦‚Æ‚©j
Evim‚Ý‚½‚­c•ªŠ„^‰¡•ªŠ„‚ª‰Â”\
EŒŸõƒc[ƒ‹•t‚«iF3‚ÅŒŸõƒL[‚ƃJƒXƒ^ƒ}ƒCƒY‰Â”\‚ÈŒŸõƒGƒ“ƒWƒ“
@ˆê——‚ªo‚Ä‚«‚ÄŒŸõ‚·‚é‚ÆŒ‹‰Ê‚ð•Êƒ^ƒu•\Ž¦‚Æ‚©j
Ecookie‚ɑΉž
Essl‚ɑΉž
EJavaScript‘ΉžiƒCƒxƒ“ƒg‚Íonclick‚Æ‚©‚¾‚¯‚Æ‚©j

‚Ü‚ Å’áŒÀ‚±‚Ì‚­‚ç‚¢‚Ì‹@”\‚Í—~‚µ‚¢‚ȁi‚—


47 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/04/13 15:43
ƒ}ƒXƒI‚̍‘‚©‚灗‚Q‚O‚O‚R`‹A‹½`
ƒ}ƒXƒI~—Õ’†IIIIIIIIIIIIIIIIIIIIIIIIIIIIII

@@@@@@@@@@@@@@@@@@@@@@^ÜSÜR.
@@@@@@@@@@@@@@@@@@@ @^@@@˜¦@ ..S
@@@@@@@@@@@@@@@@@@@^@@ B l@@@ j
@@@@@@@@@@@@@@@@@@iB...B_ .ƒm BSB...˜¦
@@@@@@@@@@@@@@@@@ @(@_@. @.. Ɂ@@ )
@@@@@@@@@@@@@@@@@@/@@@@ @ @/
@@@@@@@@@@@@@@@@ @/@ƒm ‚µ@@@/
@@@@ ŽOPPPP_@@@@/@j@‚Ɓ@ @/
@@@@@/@@QQQQ|@.@ /@@@@@@/
@@@@ /@@„@@@@@|@@ /@@@ @@/
@@@@/@@/@Ü@@Ü |@@/@@@@@/
@@@@|Q/---(E)--(E) |@ /@ @@@/
@@@@|@(6@@@@‚@ b /@ ..@@/@^ ‚Ç‚¤‚â‚çIIIIIIIIII
@ @ @|@@@@QQQ b/@ @.@/@@ƒ‰´‚Í‘B‚·‚é‚炵‚¢IIIIIII
@@@@_@@_Q/@^@/@@@/@@@@_QQQQQQQQQ
@ƒVƒR@@_QQ_^@@ /@@@/
@@@@@@/@@@@ _@/ .@@/
@ƒVƒR@@i@j@߁@ß/_T ˜¦.../
@@@@@@_ R¤ i@ / @¼//
@@@@@@@ _@R /@¼//
@@@@@@@ i@_‚@@/
@@@@@@@@|@ |‚n›ƒm _
@@@@@@@@|@ |@@@@_ _
@@@@@@@@|@ j@@@@@|@ j
@@@@@@@ /@/@@ @@ /@/
@@@@@@ /@/@@ @ @ ¾
@@@@@@ ¾
>>1>>2>>3>>4>>5>>6>>7>>8>>9>>10>>11


48 FŽRèÂF03/04/20 04:36
@@ ÈQÈ
@@i@@OO jƒ ‚Ê‚é‚ہiOOj

49 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/05/03 20:58
http://pc2.2ch.net/test/read.cgi/tech/1038414493/336

50 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/05/10 21:04
‚Ê‚é‚Û

51 FŽRèÂF03/05/28 13:04
@@@ @ÈQÈ
Ëß­.°@(@@OO j ƒ‚±‚ê‚©‚ç‚à–l‚ð‰ž‰‡‚µ‚ĉº‚³‚¢‚ˁiOOjB
@@k~¾PPl
@@ \\ @@@@@@@@@@@@@@@@@@@@@ŽRèÂ

52 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/05/31 17:47
http://pc.2ch.net/test/read.cgi/mac/1053924514/l50

VEmac”‚ÅApple‚©‚çV‚µ‚­o‚½ƒuƒ‰ƒEƒUSafari‚ðŒ@‚艺‚°‚Ä‚¢‚Ü‚·B
‚Ü‚¾Ý’è‚Å‚«‚鍀–Ú‚à­‚È‚­A•W€“I‚È‹@”\‚ªŒ‡”@‚µ‚Ä‚¢‚½‚肵‚Ä‚¢‚Ü‚·‚ª
ƒ^ƒu‚ɑΉž‚µ‚Ä‚¢‚½‚èAGoogle‚ÌŒŸõ‹@”\‚ª•W€‘•”õ‚³‚ê‚Ä‚¢‚½‚è‚Æ
‚ß‚Ú‚µ‚¢‹@”\‚ª·‚荞‚Ü‚ê‚Ä‚ ‚èA¡”No‚½‚΂©‚è‚̃\ƒtƒg‚Ì‹­‚Ý‚Æ‚¢‚¤‚©
«—ˆ«‚ðŠ´‚¶‚³‚¹‚Ä‚­‚ê‚Ü‚·B
ƒI[ƒvƒ“ƒ\[ƒX‚Å–¢‚¾Beta”Å‚È‚Ì‚Å‚±‚ê‚©‚ç‚Ç‚¤‚È‚é‚©Šy‚µ‚Ý‚Å‚·B
‚æ‚낵‚¯‚ê‚΃vƒƒOƒ‰ƒ€”‚̏Zl‚³‚ñ‚É‚àˆÓŒ©‚ð‚¢‚½‚¾‚«‚½‚¢‚Å‚·B

--ƒRƒsƒy‚ð‚¨‹–‚µ‚ð--

53 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/07/05 14:02
ªmailto:kli

54 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/07/06 14:07
ã‚°‘±‚¯‚Ä‚¢‚é‚ƁA’N‚©‚ª–{“–‚ÉŽÀ‘•‚·‚é‚©‚à‚µ‚ê‚È‚¢

55 FŽRè ÂF03/07/15 10:07

@__ÈQÈ_
@|i@@OO j|@ƒQ‚é‚ہiOOj
@|_ÜÜÜ_
@_ |ÜÜÜ~|@@@@@@@@@ŽRèÂ
@@ ~PPPP

56 FŽRè ÂF03/08/02 02:56
iOOj

57 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 00:29

'/* WININET‰Šú‰» */
hInternet = InternetOpen( _
"WININET Sample Program", _
INTERNET_OPEN_TYPE_DIRECT, _
vbNullString, _
vbNullString, _
0)

'/* ƒT[ƒo‚֐ڑ± */
hHttpSession = InternetConnect( _
hInternet, _
"www.yahoo.com", _
UrlComponents.nPort, _
vbNullString, _
vbNullString, _
INTERNET_SERVICE_HTTP, _
0, _
0)

'/* HTTP—v‹‚̍쐬 */
hHttpRequest = HttpOpenRequest( _
hHttpSession, _
"GET", _
"index.html", _
"HTTP/1.0", _
"http://www.yahoo.com/", _
vbNullString, _
0, _
0)

58 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 00:30

'/* ì¬‚µ‚½HTTP—v‹‚Ì”­s */
hHttpRequest = HttpSendRequest( _
hHttpRequest, _
vbNullString, _
0, _
vbNullString, _
0)

'/* ƒRƒ“ƒeƒ“ƒc‚Ì“à—e‚ðŽæ“¾E•\Ž¦ */
Text1.Text = InternetReadFile( _
hHttpRequest, _
Buf, _
BufSize, _
0)


'/* Œãˆ—
Call InternetCloseHandle(hHttpRequest)
Call InternetCloseHandle(hHttpSession)
Call InternetCloseHandle(hInternet)

59 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 00:34
‚ A>>57‚¾‚ƈႤŠ‚ŃGƒ‰[o‚é

'/* WININET‰Šú‰» */
hInternet = InternetOpen( _
"WININET Sample Program", _
INTERNET_OPEN_TYPE_PRECONFIG, _
vbNullString, _
vbNullString, _
0)

'/* ƒT[ƒo‚֐ڑ± */
hHttpSession = InternetConnect( _
hInternet, _
"www.yahoo.com", _
INTERNET_DEFAULT_HTTP_PORT, _
vbNullString, _
vbNullString, _
INTERNET_SERVICE_HTTP, _
0, _
0)

‚Å‚¨Šè‚¢‚µ‚Ü‚·‚Å‚·
‚í‚´‚í‚´‚ ‚肪‚Æ‚¤ô

60 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 01:21
‚ñ[‚Æ‚è‚ ‚¦‚¸httpƒT[ƒo‚©‚çƒf[ƒ^‚ðŽæ“¾‚·‚é—¬‚ê‚𐮗B

winInet‚̏‰Šú‰»(ƒCƒ“ƒ^[ƒlƒbƒgƒnƒ“ƒhƒ‹‚̎擾)
@@@@@@@«
Žæ“¾‚µ‚½ƒCƒ“ƒ^[ƒlƒbƒgƒnƒ“ƒhƒ‹‚ðŽg‚Á‚Ä
ƒT[ƒo‚֐ڑ±(InternetConnect)
HttpƒZƒbƒVƒ‡ƒ“‚ðŠJ‚¢‚ănƒ“ƒhƒ‹Žæ“¾
@@@@@@@«
InternetConnect‚Ŏ擾‚µ‚½ƒnƒ“ƒhƒ‹‚ðŽg‚Á‚Ä
HTTPƒŠƒNƒGƒXƒg‚̃nƒ“ƒhƒ‹‚ðŽæ“¾(HttpRequest)
@@@@@@@«
ƒŠƒNƒGƒXƒgƒnƒ“ƒhƒ‹Žg‚Á‚ăŠƒNƒGƒXƒg‚Ì‘—MB
@@@@@@@«
ƒT[ƒo‚©‚çƒf[ƒ^Žæ“¾

‚ŁA‚ ‚Á‚Ä‚é‚Ì‚©‚ȁH

61 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 01:23
‚Æ‚è‚ ‚¦‚¸A‹C‚É‚È‚Á‚½‚Ì‚Í

'/* ì¬‚µ‚½HTTP—v‹‚Ì”­s */
hHttpRequest = HttpSendRequest( _
hHttpRequest, _
vbNullString, _
0, _
vbNullString, _
0)

‚Ì‘æˆêˆø”‚ÌhHttpRequest‚Í‚±‚ÌŽž“_‚ł͉½‚à‚Í‚¢‚Á‚Ä‚È‚¢‚ñ‚¶‚á‚È‚¢H
‚±‚±‚É“ü‚ê‚é‚Ì‚ÍInternetConnect()ŠÖ”‚Ŏ擾‚µ‚½ƒnƒ“ƒhƒ‹‚¶‚á‚È‚¢‚©‚ȁH

62 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 01:39
‚íB–{“–‚ ‚肪‚Æ‚¤‚²‚´‚¢‚Ü‚·I(LEÍE`)
‚Æ‚è‚ ‚¦‚¸¡‚©‚ç“Ç‚ñ‚Ń^ƒ‚µ‚Ä‚Ý‚Ü‚·I

63 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 01:44
>>60
“Ç‚Ý‚Ü‚µ‚½A‚»‚¤‚Å‚·‚ˁB‰´‚Ì“ª‚Ì’†‚É‚ ‚é‚Ì‚Í‚»‚ê‚Å‚·B
‚ŁA‰½ŒÌ‚©ƒŠƒNƒGƒXƒg‚ŃGƒ‰[‚ªo‚éiEmpty‚Ì•Ô‹pj‚Á‚ÄŽ–‚Å‚·


64 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 01:45
‚¿‚È‚Ý‚ÉEmpty‚ð•Ô‚·‚Ì‚ÍhHttpRequest‚Å‚·
HttpOpenRequest‚̃pƒ‰ƒ[ƒ‰[‚ð‚¿‚å‚­‚¿‚å‚­•Ï‚¦‚Ä‚é‚ñ‚Å‚·‚¯‚Ç‚¢‚©‚ñ‚¹‚ñ‚¤‚Ü‚­‚¢‚©‚È‚­‚Ä


65 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 01:49
http://tokyo.cool.ne.jp/masapico/api_HttpOpenRequest.html
ª‚±‚±‚ÉŒ³‚̃\[ƒX‚ª‚ ‚è‚Ü‚·

>>61
”­s•”•ª‚Å‚·‚©B‚»‚¤‚Å‚·‚ËhHttpRequest‚É‚ÍEmpty‚ª•Ô‚Á‚Ä‚­‚é‚Ì‚Å‹ó‚Å‚·
‚ŁA‚–‚‚‚Í‚»‚±‚ÅŽ~‚Ü‚é‚©‚ç‹C‚É‚µ‚È‚¢‚Å‚¢‚Ü‚µ‚½B¡‚¿‚å‚Á‚ÆŽŽ‚µ‚Ä‚Ý‚Ü‚·

66 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 01:50
>>65
‚¤‚¡A‚Æ‚è‚ ‚¦‚¸ŽŽ‚µ‚Ä‚Ý‚Ä‚­‚ê‚¡

‚¤‚£‚£‚ށEEEEVB—Ž‚Æ‚µ‚Ä‚­EEE(ÓºÞÓºÞÓºÞ

67 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 01:53
‚â‚΂¢—•¶‚É‚È‚Á‚Ä‚éB
>>65
‚ÅŒ¾‚Á‚½’Ê‚è‚–‚‚‚¾‚Æ‚»‚±‚ÅŽ~‚Ü‚Á‚Ä‚µ‚Ü‚¢‚Ü‚µ‚½B
‚Ç‚¤‚â‚ç‚–‚‚‚ÍhHttpRequest‚ª‹ó‚È‚Ì‚ª‹–‚¹‚È‚¢‚Ì‚©HttpOpenRequest‚̐錾‚ª‹C‚É‚­‚í‚È‚¢‚Ý‚½‚¢‚Å‚·B
‚¿‚È‚Ý‚É–l‚Í‘æˆêˆø”‚Í‚»‚̊֐”‚ªŽg‚¤ˆø”‚¾‚ƉðŽß‚µ‚Ä‚é‚ñ‚Å‚·‚¯‚LjႢ‚Ü‚·‚©‚ˁH

‚–‚‚‚͉´‚àEEEƒ‚ƒSƒ‚ƒS

‚¦‚ÆŽ©Ì‚Ö‚Á‚Û‚±‚³‚ñ‚ÌŠJ”­Œ¾Œê‚Í‚È‚ñ‚Å‚·‚©H

68 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 02:01
>>67
‚ñ[A‚»‚¤‚¾‚Ë‚¡B
HttpSendRequest()ŠÖ”‚Ì‘æˆêˆø”‚́AHTTP—v‹‚ðo‚·Û‚ÉŽg—p‚·‚é’l‚ð“ü‚ê‚é‚ׂ«‚¾‚Ë‚¡B

hHttpRequest = HttpSendRequest( _
hHttpRequest, _
vbNullString, _
0, _
vbNullString, _
0)

‚±‚̃\[ƒXê‡AHttpSendRequest‚É“n‚µ‚Ä‚¢‚é‘æˆêˆø”‚ÍhHttpRequest,B
‚µ‚©‚µAHttpSendRequest‚Ì•Ô‚è’l‚ªŠi”[‚³‚ê‚é‚Ì‚àhHttpRequestB

‚‚܂èhHttpRequest‚ªˆø”‚Æ‚µ‚Ä“n‚³‚ê‚鎞“_‚ł́A•Ô‚è’l‚Í‚È‚¢‚킯‚¾‚©‚ç´ÝÌßè‚É‚È‚éB
‚ƁAŽv‚¤B

69 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 02:07
HttpSendRequest‚Ì‘æˆêˆø”‚Ìà–¾‚Í

InternetConnect()ŠÖ”‚Å•Ô‚³‚ꂽƒCƒ“ƒ^[ƒlƒbƒg‚ւ̐ڑ±‚ðŽ¯•Ê‚·‚éƒnƒ“ƒhƒ‹B

‚Á‚ď‘‚¢‚Ä‚é‚©‚çA«‚̏ꍇ
http://tokyo.cool.ne.jp/masapico/api_HttpOpenRequest.html

@@@hHttpSession = InternetConnect(
@@@@@@hInternet,
@@@@@@"www.cool.ne.jp",
@@@@@@INTERNET_DEFAULT_HTTP_PORT,
@@@@@@NULL,
@@@@@@NULL,
@@@@@@INTERNET_SERVICE_HTTP,
@@@@@@0,
@@@@@@0);

‚Á‚ď‘‚¢‚Ä‚ ‚é‚©‚çAInternetConnect()ŠÖ”‚Å•Ô‚³‚ꂽƒCƒ“ƒ^[ƒlƒbƒg‚ւ̐ڑ±‚ðŽ¯•Ê‚·‚éƒnƒ“ƒhƒ‹‚Á‚Ä‚¢‚¤‚Ì‚Í
hHttpSession‚ÉŠi”[‚³‚ê‚Ä‚¢‚éB

‚¾‚©‚çAHttpSendRequest‚Ì‘æˆêˆø”‚ÉhHttpSession‚ð—^‚¦‚Ä‚é‚ñ‚¾‚Æ‚¨‚à‚¤‚æ‚ñB


‚ A‚¿‚Ȃ݂ɉ´‚ªŽg‚Á‚Ă錾Œê‚͐â–Ő¡‘O‚Ìjava‚Á‚·EEEEB

70 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 02:09
‚ [‚È‚é‚قǁBã‘‚«‚µ‚¿‚á‚¢‚¯‚È‚¢‚Á‚Ä‚¢‚¤–ñ‘©Ž–‚ª‚ ‚é‚È‚ç‚»‚¤‚Å‚·‚ˁB

ŽŽ‚µ‚É
test00= HttpSendRequest( _
hHttpRequest, _
vbNullString, _
0, _
vbNullString, _
0)

‚Á‚Ä‚â‚Á‚Ä‚Ý‚½‚ñ‚¾‚¯‚Ç‚â‚Á‚Ï‚èƒGƒ‰[‚Å‚¿‚á‚¢‚Ü‚µ‚½B

71 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 02:13
test00= HttpSendRequest( _
hHttpSession, _
vbNullString, _
0, _
vbNullString, _
0)

‚¶‚áƒ_ƒ‚©‚¢H

72 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 02:16
‰´‚à‚¿‚å‚Á‚ƃŠƒtƒ@ƒŒƒ“ƒX‚ð“Ç‚Ý’¼‚µ‚Ä‚Ý‚Ü‚·‚Ë
‚ AJAVA‚Å‚·‚©BˆêŽžŠúJAVA‚à‚Ă͂₳‚ꂽ‚̂ɂЂǂ¢‚Á‚·‚æ‚Ë(L¥ƒÖ¥M)¼®ÎÞ°Ý

‚¦‚Æ‚–‚‚‚ÍŠî–{“I‚ɏォ‚牺‚֏‡‚ɃvƒƒOƒ‰ƒ€‚ª“®‚­‚ñ‚Ń‹[ƒv‚ª–³‚¢ŒÀ‚艺‚̃\[ƒX‚Ì‚¹‚¢‚ŏã‚̃Gƒ‰[‚ªo‚é‚Á‚ÄŽ–‚Í–³‚¢‚Í‚¸‚È‚ñ‚Å‚·‚æiAPI‚Í‚¢‚Ü‚¢‚¿‚í‚©‚ñ‚È‚¢‚Å‚·‚¯‚ǁj
‚¾‚©‚çHttpOpenRequest‚ŃGƒ‰[‚ªo‚Ä‚é‚Á‚ÄŽ–‚Í‚»‚ê‚ðŠÜ‚ß‚½ã‚Å‚È‚ñ‚©‚Æ‚ç‚Ô‚Á‚Ä‚é‚Ì‚©‚ƁB


73 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 02:28
‚ñH
‚ ‚ŸII‚²‚ß‚ñAƒGƒ‰[‚ªo‚Ä‚éŒÂŠ‚ðŒë‰ð‚µ‚Ä‚½EEE½Ï¿B
HttpOpenRequest‚©B

74 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 02:29
ŠÖŒW‚È‚¢‚¯‚Ç
http://www.geocities.co.jp/SilkRoad/4511/vb/wininet.htm
‚àŒ©‚Ä‚â‚Á‚Ä‚Ü‚·

>>71
‚»‚ê‚à‚â‚Á‚Ä‚Ý‚Ü‚µ‚½B‚»‚±‚̓Gƒ‰[o‚Ä‚È‚¢‚Å‚·‚ˁB‚â‚Á‚ÏHttpOpenRequest‚ª‹C‚É“ü‚ç‚È‚¢‚Ý‚½‚¢‚Å‚·

75 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 02:32
>>73
‚ A‚»‚¤‚È‚ñ‚·‚©(LEÍE`)
‚¢‚¦‚¢‚¦`ô
‚Æ‚Í‚¢‚Á‚Ä‚à‰´‚à‚í‚©‚è‚â‚·‚­Œ¾‚¦‚΂悩‚Á‚½‚Å‚·‚ˁA‚²‚ß‚ñ‚È‚³‚¢

ˆê‰ž‘‚¢‚Ä‚¨‚­‚Æ
HTTP—v‹‚̍쐬‚Ì’¼‰º‚Å‚·

76 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 02:50
‚ I‚¿‚å‚Á‚Æ‰ðŒˆì‚ª‚݂‚©‚Á‚½‚©‚à‚Å‚·
‚Æ‚è‚ ‚¦‚¸——R‚Í‚í‚©‚ç‚È‚¢‚¯‚Ç•Ï‚¦‚½ƒ\[ƒX‚ð‘~‚«o‚µ‚Ä‚¨‚«‚Ü‚·‚Ë

'/* HTTP—v‹‚̍쐬 */
hHttpRequest = HttpOpenRequest( _
hHttpSession, _
"GET", _
"index.html", _
"HTTP/1.1", _
"http://www.yahoo.com", _
0, _
0, _
0)

‚Ü‚½‰½‚©‚ ‚Á‚½‚ç‚·‚®‘‚«ž‚Ý‚Ü‚·

77 FƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñF03/08/14 03:53
>>76
‚¤‚¡A‚¨‚‹B

‚¤‚£‚ށAInternetOpenUrlEEE‚©H

“®ìŠm”F‚µ‚È‚ª‚炶‚á‚È‚¢‚ƃcƒ‰ƒC‚È(*L„DM)ʧʧ
‚æ‚£‚µAƒpƒp—Ž‚µ‚¿‚á(ry

78 F‚¶‚傶‚傶‚å ŸJyo.VSQ2DM F03/08/14 13:27
‚ ‚Ÿ‚ñƒpƒpƒ“‚»‚ê‚Í‚¢‚¯‚ȁi—ª

‚Á‚Ä‚©“®ìŠÂ‹«‚ª‚È‚¢‚̂͂‚炷‚¬‚Á‚·‚æ(߄tß)Ͻް
‚Ü‚Ÿ¡‚©‚ç‚–‚‚‚Á‚Ä‚Ì‚à‚Ç‚¤‚©‚ÆŽv‚¢‚Ü‚·‚¯‚Ç(L¥ƒÖ¥M)¼®ÎÞ°Ý
‚Æ‚è‚ ‚¦‚¸‘¼l‚ÌAPI‚¶‚áŽd‘g‚Ý‚ª‚í‚©‚ç‚È‚¢‚©‚烊ƒtƒ@ƒŒƒ“ƒX“Ç‚ñ‚эƒWƒbƒN•”•ªŽ©ì‚µ‚Ä‚Ý‚Ü‚·
—[•û‚É‚Í‚±‚±‚É•ñ‚Å‚«‚é—\’èB

‰´‚ÍŽO‘ºƒXƒŒ‚É‚¾‚¢‚½‚¢‚¢‚Ü‚·‚Ì‚Å‚È‚É‚©‚ ‚Á‚½‚ç‚»‚Á‚¿‚É‚Å‚à


79 F‚¶‚傶‚傶‚å ŸJyo.VSQ2DM F03/08/15 12:13
‚â‚΂ÁAŒ‹‹Ç•ñ‚Å‚«‚È‚©‚Á‚½B
‚¦‚ƁA•ñ‚Æ‚µ‚Ä‚ÍAPI‚ðŽg‚Á‚½ƒƒWƒbƒN‚Í‚¢‚­‚烊ƒtƒ@ƒŒƒ“ƒX’Ê‚è‚ɍì‚Á‚Ä‚àƒGƒ‰[‚ªo‚é‚Ì‚Å
‚–‚‚‚̃Rƒ“ƒ|[ƒlƒ“ƒg‚Å‘ã—p‚µ‚Ä‚È‚ñ‚Æ‚©Š®¬‚³‚¹‚Ü‚µ‚½B
iAPI‚ō¢‚Á‚Ă鎞‚ɃRƒ“ƒ|[ƒlƒ“ƒg‚ðŒ©‚Â‚¯‚½Žž‚Í‚·‚²‚¢‹~‚í‚ꂽ(߄tß)j

‚Æ‚¢‚¤‚±‚Ƃňꏏ‚ÉŽè“`‚Á‚Ä‚à‚ç‚Á‚Ä‚ ‚肪‚Æ‚¤‚²‚´‚¢‚Ü‚µ‚½I‚·‚²‚¢•‚©‚Á‚½‚Å‚·B
‚Å‚Í‚Ü‚½ŽO‘ºƒXƒŒ‚ŁB

80 FŽRè ÂF03/08/15 18:04
@@@ (ÜVÜ)
@@@„  O O „ ƒ‚±‚ê‚©‚ç‚à–l‚ð‰ž‰‡‚µ‚ĉº‚³‚¢‚ˁiOOjB
@@¼|@@@@|‚Â
@@@iQjiQj@@@@@@@@@@@@@@@@@@@@@@ŽRèƒpƒ“

38 KB
¡ ‚±‚̃XƒŒƒbƒh‚͉ߋŽƒƒO‘qŒÉ‚ÉŠi”[‚³‚ê‚Ä‚¢‚Ü‚·

šƒXƒ}ƒz”Łš ŒfŽ¦”Â‚É–ß‚é ‘S•” ‘O100 ŽŸ100 ÅV50

read.cgi ver 05.04.00 2017/10/04 Walang Kapalit š
FOX š DSO(Dynamic Shared Object)