From: Ivan Denisov Date: Mon, 4 Aug 2014 08:44:51 +0000 (+0800) Subject: Remove allocation of new console from Windows_HostConsole; server example improved... X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=cb8d9f1fc051bf846fa1cff34abef0ac3ccffe12;p=bbcp.git Remove allocation of new console from Windows_HostConsole; server example improved and tested, documentation for example added --- diff --git a/BlackBox/_Windows_/Host/Mod/Console.odc b/BlackBox/_Windows_/Host/Mod/Console.odc index ffd03b4..5a0a039 100644 Binary files a/BlackBox/_Windows_/Host/Mod/Console.odc and b/BlackBox/_Windows_/Host/Mod/Console.odc differ diff --git a/examples/server/Gtk2 b/examples/server/Gtk2 new file mode 120000 index 0000000..969f46c --- /dev/null +++ b/examples/server/Gtk2 @@ -0,0 +1 @@ +/home/ivan/oberon/freenix/BlackBox/_Linux_GUI/Gtk2 \ No newline at end of file diff --git a/examples/server/README b/examples/server/README new file mode 100644 index 0000000..218c75a --- /dev/null +++ b/examples/server/README @@ -0,0 +1,28 @@ +# This example demonstrates simple server based on console version of BlackBox. + +# To run this example you need to build console version of BlackBox: + +# 1. Go to the BlackBox folder +cd ../../BlackBox + +# 2. Clean previous +./clean +./switch-target none + +# 3. Switch to BlackBox Interp and compile +./switch-target `uname -s` Interp +./build + +# 4. Go to the example folder and compile the example +cd ../examples/server +../../run-BlackBox < buildExample + +# 5. Stop any other server that using 80 ports (apache, nginx, ...) +# 6. Then you can start server using command: + +sudo ./bbserver + +# To check the work of the server open browsel and look the page http://localhost + +# There are scripts ./start and ./stop for the deamon start and stop mode + diff --git a/examples/server/System/Mod/Init.odc b/examples/server/System/Mod/Init.odc index 7617333..30c4b57 100644 Binary files a/examples/server/System/Mod/Init.odc and b/examples/server/System/Mod/Init.odc differ diff --git a/examples/server/Tcp/Mod/Client.odc b/examples/server/Tcp/Mod/Client.odc deleted file mode 100644 index 003c10d..0000000 Binary files a/examples/server/Tcp/Mod/Client.odc and /dev/null differ diff --git a/examples/server/Tcp/Mod/Sender.odc b/examples/server/Tcp/Mod/Sender.odc deleted file mode 100644 index 40f6723..0000000 Binary files a/examples/server/Tcp/Mod/Sender.odc and /dev/null differ diff --git a/examples/server/Tcp/Mod/Server.odc b/examples/server/Tcp/Mod/Server.odc index 0e920c8..4ffffe9 100644 Binary files a/examples/server/Tcp/Mod/Server.odc and b/examples/server/Tcp/Mod/Server.odc differ diff --git a/examples/server/Tcp/Mod/Service.odc b/examples/server/Tcp/Mod/Service.odc index 156cf94..1fb3aa2 100644 Binary files a/examples/server/Tcp/Mod/Service.odc and b/examples/server/Tcp/Mod/Service.odc differ diff --git a/examples/server/Tcp/Mod/Unloader.odc b/examples/server/Tcp/Mod/Unloader.odc deleted file mode 100644 index c35025a..0000000 Binary files a/examples/server/Tcp/Mod/Unloader.odc and /dev/null differ diff --git a/examples/server/Tcp/Rsrc/Server.odc b/examples/server/Tcp/Rsrc/Server.odc deleted file mode 100644 index e55bfd7..0000000 Binary files a/examples/server/Tcp/Rsrc/Server.odc and /dev/null differ diff --git a/examples/server/bbserver b/examples/server/bbserver index 75404d1..5b6411d 100755 --- a/examples/server/bbserver +++ b/examples/server/bbserver @@ -6,4 +6,4 @@ unset GTK_MODULES export LIBOVERLAY_SCROLLBAR=0 env \ BB_PRIMARY_DIR="../../BlackBox" BB_SECONDARY_DIR="$PWD" \ -../../BlackBox/blackboxc + ../../BlackBox/blackboxc diff --git a/examples/server/buildExample b/examples/server/buildExample new file mode 100644 index 0000000..485fc3a --- /dev/null +++ b/examples/server/buildExample @@ -0,0 +1,5 @@ +DevCompiler.CompileThis TcpService TcpServer TcpBytes TcpTask + +DevCompiler.CompileThis Gtk2GLib Gtk2GObject Gtk2Pango Gtk2Gdk Gtk2Gtk + +DevCompiler.CompileThis Init diff --git a/examples/server/web/forms.html b/examples/server/web/forms.html deleted file mode 100644 index 4f4bca5..0000000 --- a/examples/server/web/forms.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - Oberon web server - - - - -
На главную

- -POST form:
-

- -GET form:
-
- - - diff --git a/examples/server/web/index.html b/examples/server/web/index.html index 309f680..47393c1 100644 --- a/examples/server/web/index.html +++ b/examples/server/web/index.html @@ -7,10 +7,9 @@ -

Cервер на Компонентном паскале

- -Серверное приложение основано на Linux версии BlackBox Component Builder 1.6.

+

The server is based on BlackBox/Component Pascal

+This server application runs on Linux version of BlackBox Component Builder 1.6.
diff --git a/examples/server/web/logo.png b/examples/server/web/logo.png index f40b784..b276c55 100644 Binary files a/examples/server/web/logo.png and b/examples/server/web/logo.png differ