File: README

package info (click to toggle)
snd 25.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,016 kB
  • sloc: ansic: 291,818; lisp: 260,387; ruby: 71,134; sh: 3,293; fortran: 2,342; csh: 1,062; cpp: 294; makefile: 294; python: 87; xml: 27; javascript: 1
file content (53 lines) | stat: -rw-r--r-- 1,349 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Quick start
===========

make
./s7webserver -verbose

Then you can either access it by opening s7webserver_repl.html in a browser,
or run the s7webserver_repl.py script.
  
s7webserver uses qhttpserver, written by Nikhil Marathe:
https://github.com/kmatheussen/qhttpserver/archive/master.tar.gz
This package is automatically downloaded and compiled when writing "make".



Some ways to access the server
==============================

* Using curl:
curl -i -X POST -H "Content-Type: text/plain" -d '(display 50)' http://localhost:6080

* Using s7webserver_repl.py:
./s7webserver_repl.py

* Using a browser:
firefox s7webserver_repl.html



The C API
=========

if you want to include s7webserver in your own program (see s7webserver.h):

  s7webserver *s7webserver_create(s7_scheme *s7, int portnum, bool find_first_free_portnum);
    
  void s7webserver_call_very_often(void);  // Should be called approx. 20 times per second in non-qt programs.
  
  void s7webserver_set_verbose(s7webserver *s7server, bool verbose);
    
  void s7webserver_set_very_verbose(s7webserver *s7webserver, bool very_verbose);
  
  int s7webserver_get_portnumber(s7webserver *s7webserver);
    
  void s7webserver_delete(s7webserver *s7server);



CREDITS
=======
s7: Bill Schottstaedt: bil@ccrma.stanford.edu
s7webserver: Kjetil Matheussen: k.s.matheussen@notam02.no