From 766878f5c9bbce6cef75e6c0b217b3923e8cdacd Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Fri, 13 Apr 2007 21:55:55 +0000 Subject: [PATCH] Added the shell server to the Win32 platform. --- platform/win32/Makefile | 9 +- platform/win32/contiki-conf.h | 3 +- platform/win32/contiki.sln | 15 ++ platform/win32/vcproj/telnetd.dsc.vcproj | 180 +++++++++++++++++++ platform/win32/vcproj/telnetd.prg.vcproj | 216 +++++++++++++++++++++++ 5 files changed, 419 insertions(+), 4 deletions(-) create mode 100644 platform/win32/vcproj/telnetd.dsc.vcproj create mode 100644 platform/win32/vcproj/telnetd.prg.vcproj diff --git a/platform/win32/Makefile b/platform/win32/Makefile index 8f9f6c2c1..93383868e 100644 --- a/platform/win32/Makefile +++ b/platform/win32/Makefile @@ -29,17 +29,20 @@ # # Author: Oliver Schmidt # -# $Id: Makefile,v 1.2 2007/04/11 01:08:46 oliverschmidt Exp $ +# $Id: Makefile,v 1.3 2007/04/13 21:55:55 oliverschmidt Exp $ # PRGS = about calc dhcp directory email ftp irc netconf processes shell \ - telnet webserver www + telnet telnetd webserver www DSCS = about calc dhcp email ftp irc netconf processes shell telnet \ - webserver + telnetd webserver all: contiki-main $(PRGS:=.prg) $(DSCS:=.dsc) APPNAME = ${subst processes,process-list,${subst www,webbrowser,$(1)}} +# Add telnetd-gui.c to get CTK support +override telnetd_src = telnetd.c telnetd-gui.c memb.c shell.c + # Use webserver.c instead of webserver-nogui.c to get CTK support override webserver_src = webserver.c httpd.c http-strings.c psock.c \ uipbuf.c memb.c httpd-fs.c httpd-cgi.c diff --git a/platform/win32/contiki-conf.h b/platform/win32/contiki-conf.h index 4503e3c0c..7a2bce981 100644 --- a/platform/win32/contiki-conf.h +++ b/platform/win32/contiki-conf.h @@ -143,7 +143,8 @@ typedef unsigned short uip_stats_t; -#define TELNETD_CONF_LINELEN 64 +#define TELNETD_CONF_LINELEN 64 #define TELNETD_CONF_NUMLINES 16 +#define TELNETD_CONF_GUI 1 #endif /* __CONTIKI_CONF_H__ */ diff --git a/platform/win32/contiki.sln b/platform/win32/contiki.sln index 1e7cfb7d7..f7cdd6fab 100644 --- a/platform/win32/contiki.sln +++ b/platform/win32/contiki.sln @@ -80,6 +80,13 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "telnet.prg", "vcproj\telnet {DD219C2D-D3F8-4C76-B2AA-376978722232} = {DD219C2D-D3F8-4C76-B2AA-376978722232} EndProjectSection EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "telnetd.prg", "vcproj\telnetd.prg.vcproj", "{ED41B93E-1FEF-477A-AFCC-7CAC0A324E24}" + ProjectSection(ProjectDependencies) = postProject + {DD219C2D-D3F8-4C76-B2AA-376978722232} = {DD219C2D-D3F8-4C76-B2AA-376978722232} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "telnetd.dsc", "vcproj\telnetd.dsc.vcproj", "{3A99D8B2-44AC-4B56-A746-61A677BCAFC8}" +EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "webserver.dsc", "vcproj\webserver.dsc.vcproj", "{BE742A25-4F10-4741-B307-850C61BE0883}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "webserver.prg", "vcproj\webserver.prg.vcproj", "{C741203A-ADD3-4C4A-9BF1-82978105F057}" @@ -192,6 +199,14 @@ Global {C511175A-BD2B-4ED9-87A6-05040E4DD823}.Debug|Win32.Build.0 = Debug|Win32 {C511175A-BD2B-4ED9-87A6-05040E4DD823}.Release|Win32.ActiveCfg = Release|Win32 {C511175A-BD2B-4ED9-87A6-05040E4DD823}.Release|Win32.Build.0 = Release|Win32 + {ED41B93E-1FEF-477A-AFCC-7CAC0A324E24}.Debug|Win32.ActiveCfg = Debug|Win32 + {ED41B93E-1FEF-477A-AFCC-7CAC0A324E24}.Debug|Win32.Build.0 = Debug|Win32 + {ED41B93E-1FEF-477A-AFCC-7CAC0A324E24}.Release|Win32.ActiveCfg = Release|Win32 + {ED41B93E-1FEF-477A-AFCC-7CAC0A324E24}.Release|Win32.Build.0 = Release|Win32 + {3A99D8B2-44AC-4B56-A746-61A677BCAFC8}.Debug|Win32.ActiveCfg = Debug|Win32 + {3A99D8B2-44AC-4B56-A746-61A677BCAFC8}.Debug|Win32.Build.0 = Debug|Win32 + {3A99D8B2-44AC-4B56-A746-61A677BCAFC8}.Release|Win32.ActiveCfg = Release|Win32 + {3A99D8B2-44AC-4B56-A746-61A677BCAFC8}.Release|Win32.Build.0 = Release|Win32 {BE742A25-4F10-4741-B307-850C61BE0883}.Debug|Win32.ActiveCfg = Debug|Win32 {BE742A25-4F10-4741-B307-850C61BE0883}.Debug|Win32.Build.0 = Debug|Win32 {BE742A25-4F10-4741-B307-850C61BE0883}.Release|Win32.ActiveCfg = Release|Win32 diff --git a/platform/win32/vcproj/telnetd.dsc.vcproj b/platform/win32/vcproj/telnetd.dsc.vcproj new file mode 100644 index 000000000..626125cc8 --- /dev/null +++ b/platform/win32/vcproj/telnetd.dsc.vcproj @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/win32/vcproj/telnetd.prg.vcproj b/platform/win32/vcproj/telnetd.prg.vcproj new file mode 100644 index 000000000..e369cb4c6 --- /dev/null +++ b/platform/win32/vcproj/telnetd.prg.vcproj @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +