gopherfs

A FUSE gopher file system.
git clone git://r-36.net/gopherfs
Log | Files | Refs | README | LICENSE

proto.h (563B)


      1 /*
      2  * Copy me if you can.
      3  * by 20h
      4  */
      5 
      6 #ifndef PROTO_H
      7 #define PROTO_H
      8 
      9 #include "sdb.h"
     10 #include <stdarg.h>
     11 
     12 void tprintf(int sock, char *fmt, ...);
     13 char *readln(int fd);
     14 int connecttcp(char *host, char *service);
     15 int sendgopherreq(char *server, char *port, char *str);
     16 void adddbentry(sdb *db, char type, char *dpath, char *path, char *name,
     17 		char *server, char *port);
     18 int parsegopher(int sock, sdb *db, char *dpath);
     19 void writetofile(int sock, int fd);
     20 int rnpggopher(char *srv, sdb *db, char *dpath, int fd);
     21 int checkcache(sdb *db, char *path);
     22 
     23 #endif
     24