소스 검색

remove server example from repository, NoBuild

Ivan Denisov 4 년 전
부모
커밋
1de23b22e4

+ 0 - 28
examples/server/README

@@ -1,28 +0,0 @@
-# This example demonstrates simple server based on console version of BlackBox.
-
-# To run this example you need to build 'Interp' version of BlackBox:
-
-# 1. Go to the BlackBox folder
-cd ../../BlackBox
-
-# 2. Clean previous
-./switch-target none
-./clean
-
-# 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
-echo "DevCompiler.CompileThis TcpService TcpServer TcpBytes TcpTask Init" | ../../BlackBox/run-BlackBox
-
-# 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 browser and look the page http://localhost
-
-# There are scripts ./start and ./stop for the daemon start and stop modes
-

BIN
examples/server/System/Mod/Init.odc


BIN
examples/server/Tcp/Mod/Bytes.odc


BIN
examples/server/Tcp/Mod/Server.odc


BIN
examples/server/Tcp/Mod/Service.odc


BIN
examples/server/Tcp/Mod/Task.odc


+ 0 - 9
examples/server/bbserver

@@ -1,9 +0,0 @@
-#!/bin/sh
-
-# fix Ubuntu-specific problems:
-unset UBUNTU_MENUPROXY
-unset GTK_MODULES
-export LIBOVERLAY_SCROLLBAR=0
-env \
-  BB_PRIMARY_DIR="../../BlackBox" BB_SECONDARY_DIR="$PWD" \
-  ../../BlackBox/blackbox

+ 0 - 2
examples/server/start

@@ -1,2 +0,0 @@
-#!/bin/sh
-nohup nice ./bbserver > ./server.log 2>&1 &

+ 0 - 2
examples/server/stop

@@ -1,2 +0,0 @@
-#!/bin/sh
-pkill --signal kill -x bbserver

BIN
examples/server/web/favicon.ico


+ 0 - 17
examples/server/web/index.html

@@ -1,17 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-	<title>Oberon web server</title>
-</head>
-
-<body style="background: #EEEEBB; margin: 20px; font-family: Trebuchet MS; color: #330000">
-<table width='100%'>
-<tr><td width='140px' valign='top' align='center'><img src='logo.png' style='margin-top: 7px'></td>
-<td valign='top' align='left'><h2>The server is based on <a href='https://blackbox.obertone.ru/download'>BlackBox/Component Pascal</a></h2>
-
-This server application runs on <a href='https://github.com/bbcb/bbcp'>Cross-platform version of BlackBox Component Builder</a>.
-</td></tr>
-</table>
-</body>
-</html>
-

BIN
examples/server/web/logo.png