DEADSOFTWARE

server example uses LinNet.select
[bbcp.git] / examples / server / README
1 # This example demonstrates simple server based on console version of BlackBox.
3 # To run this example you need to build console version of BlackBox:
5 # 1. Go to the BlackBox folder
6 cd ../../BlackBox
8 # 2. Clean previous
9 ./switch-target none
10 ./clean
12 # 3. Switch to BlackBox Interp and compile
13 ./switch-target `uname -s` Interp
14 ./build
16 # 4. Go to the example folder and compile the example
17 cd ../examples/server
18 echo "DevCompiler.CompileThis TcpService TcpServer TcpBytes TcpTask CommTCP Init" | ../../BlackBox/run-BlackBox
20 # 5. Stop any other server that using 80 ports (apache, nginx, ...)
21 # 6. Then you can start server using command:
23 sudo ./bbserver
25 # To check the work of the server open browser and look the page http://localhost
27 # There are scripts ./start and ./stop for the daemon start and stop mode