Ivan Denisov 47780e4f99 server example improved (change logo and text) 9 年之前
..
System cb8d9f1fc0 Remove allocation of new console from Windows_HostConsole; server example improved and tested, documentation for example added 11 年之前
Tcp cb8d9f1fc0 Remove allocation of new console from Windows_HostConsole; server example improved and tested, documentation for example added 11 年之前
web 47780e4f99 server example improved (change logo and text) 9 年之前
Gtk2 cb8d9f1fc0 Remove allocation of new console from Windows_HostConsole; server example improved and tested, documentation for example added 11 年之前
README f4a379732d поправил путь компиляции в README и обновил логотип в примере с сервером 10 年之前
bbserver cb8d9f1fc0 Remove allocation of new console from Windows_HostConsole; server example improved and tested, documentation for example added 11 年之前
buildExample cb8d9f1fc0 Remove allocation of new console from Windows_HostConsole; server example improved and tested, documentation for example added 11 年之前
start d1587626cf обновил и проверил пример сервера 11 年之前
stop d1587626cf обновил и проверил пример сервера 11 年之前

README

# 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
../../BlackBox/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