SlideScript

There are various functions within SlideScript in terms of networking availability. The micro web server is stable and 100% usable, and also incorporated: netlisten and nettoss.

SS:HTTP

SlideScript has, for convenience and ease of use at the prompt level, a built-in web server. The function is known as nethttp.
The function has the ability to fork into the background as an operational daemon until the SlideScript session is ended. When not forked, the web server runs in the foreground and will inform when a connection has been made and requests a file from the webserver.


#!/bin/usr/slidescript
# Starting the built-in web server
# run in background!
nethttp "8080" "1"

chdir "docs"

# run in foreground!
nethttp "8081" "0"

Flat file listening server, and file tossing.

Amazingly convenient feature for passing raw text from machine to machine, and these functions are known as: netlisten and nettoss.
Listening server:


#!/usr/bin/slidescript
# Start listening server on port "7000"
netlisten "7000"
Incoming connections send data using the nettoss function and data is saved into a flat file in the working directory as a random filename based on time, srand, and rand in C.
Tossing text / files to listening server:

### Sending text / files via interactive shell ###

ss:prompt: nettoss "127.0.0.1" "7000" "Hello!"
ss:client:connected to 127.0.0.1:7000
ss:prompt: 

### Listening socket ###

ss:server:listening on '7000'
ss:server:connection from 127.0.0.1
ss:server:client buffer saved as 'wQiHVlWxD595XZlk'

IRC server

Still need help? Want to report a bug? Join us!

IP/Port: cddo.cc/1337
Main hang channel: #theroot
FreeBox channel: #freebox
FreonLinux channel: #freonlinux