Introduction
Introduction Statistics Contact Development Disclaimer Help
display more types as documented in the RFC, distinguish reserved types - gophe…
git clone git://git.codemadness.org/gopherproxy-c
Log
Files
Refs
README
LICENSE
---
commit ba4a6bfff30969bbea9529f7852cd4b929421fbe
parent b8a14c3c0df0a4d9ad6eca8bc772ca0140a0e897
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 17 Aug 2018 16:00:07 +0200
display more types as documented in the RFC, distinguish reserved types
Diffstat:
M gopherproxy.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/gopherproxy.c b/gopherproxy.c
@@ -145,14 +145,26 @@ typestr(int c)
switch (c) {
case '0': return " TEXT";
case '1': return " DIR";
+ case '2': return " CSO";
+ case '3': return " ERR";
+ case '4': return " MAC";
+ case '5': return " DOS";
+ case '6': return " UUENC";
case '7': return "SEARCH";
+ case '8': return "TELNET";
case '9': return " BIN";
case 'g': return " GIF";
case 'h': return " HTML"; /* non-standard */
case 's': return " SND"; /* non-standard */
- case 'A': return " AUDIO"; /* non-standard */
+ case '+': return "MIRROR";
case 'I': return " IMG";
- default: return " ";
+ case 'T': return "TN3270";
+ default:
+ /* "Characters '0' through 'Z' are reserved." (ASCII) */
+ if (c >= '0' && c <= 'Z')
+ return "RESERV";
+ else
+ return " ";
}
}
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.