Introduction
Introduction Statistics Contact Development Disclaimer Help
handle telnet and tn3270 types - gopherproxy-c - Gopher HTTP proxy in C (CGI)
git clone git://git.codemadness.org/gopherproxy-c
Log
Files
Refs
README
LICENSE
---
commit 2188db7bb8e13eb43c8e61376baf0381be3af513
parent ba4a6bfff30969bbea9529f7852cd4b929421fbe
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 17 Aug 2018 16:00:45 +0200
handle telnet and tn3270 types
Diffstat:
M gopherproxy.c | 13 +++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gopherproxy.c b/gopherproxy.c
@@ -329,6 +329,19 @@ servedir(const char *server, const char *port, const char …
"\" name=\"p\" value=\"\" size=\"72\" />"
"<input type=\"submit\" value=\"Search\" /></p…
break;
+ case '8': /* telnet */
+ case 'T': /* tn3270 */
+ fputs(typestr(v._type), stdout);
+ printf(" <a href=\"%s://", v._type == '8' ? "telnet" :…
+ xmlencode(v.path);
+ fputs("@", stdout);
+ xmlencode(v.server);
+ fputs(":", stdout);
+ xmlencode(v.port);
+ fputs("\">", stdout);
+ xmlencode(v.username);
+ fputs("</a>", stdout);
+ break;
default: /* other */
fputs(typestr(v._type), stdout);
fputs(" <a href=\"", stdout);
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.