Updated license
This commit is contained in:
parent
023c4b7d8a
commit
f7889a09ba
|
@ -0,0 +1,22 @@
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
24
README.txt
24
README.txt
|
@ -6,20 +6,18 @@ Sometimes, it's just annoying and time-draining to deal with all of the
|
||||||
intricacies of :usockets— facilservil abstracts away all of those bits.
|
intricacies of :usockets— facilservil abstracts away all of those bits.
|
||||||
|
|
||||||
|
|
||||||
----------------------------------------
|
————————————————————————————————————————
|
||||||
FEATURES
|
FEATURES
|
||||||
----------------------------------------
|
————————————————————————————————————————
|
||||||
|
|
||||||
* Multi-threaded
|
* Multi-threaded
|
||||||
* Input-handling
|
* Input-handling
|
||||||
* Logging system
|
* Logging system
|
||||||
* UTF-8
|
* UTF-8
|
||||||
|
|
||||||
|
|
||||||
----------------------------------------
|
————————————————————————————————————————
|
||||||
DEMONSTRATION
|
DEMONSTRATION
|
||||||
----------------------------------------
|
————————————————————————————————————————
|
||||||
|
|
||||||
Load up Facilservil, then run this in your repl:
|
Load up Facilservil, then run this in your repl:
|
||||||
|
|
||||||
(facilservil:ex-server "localhost" 8888)
|
(facilservil:ex-server "localhost" 8888)
|
||||||
|
@ -48,11 +46,9 @@ input), look at QOTDD (https://git.eunichx.us/qotdd).
|
||||||
For a more comprehensive guide to Facilservil, look to USAGE, coming right up.
|
For a more comprehensive guide to Facilservil, look to USAGE, coming right up.
|
||||||
|
|
||||||
|
|
||||||
|
————————————————————————————————————————
|
||||||
----------------------------------------
|
|
||||||
USAGE
|
USAGE
|
||||||
----------------------------------------
|
————————————————————————————————————————
|
||||||
|
|
||||||
To use Facilservil, just use the `facilservil:server` function somewhere.
|
To use Facilservil, just use the `facilservil:server` function somewhere.
|
||||||
|
|
||||||
"host" and "port" are, obviously, the host-IP and port, respectively.
|
"host" and "port" are, obviously, the host-IP and port, respectively.
|
||||||
|
@ -79,10 +75,10 @@ whatever you need). You can store/set a variable with #'bury, and retrieve with
|
||||||
#'dig.
|
#'dig.
|
||||||
|
|
||||||
|
|
||||||
|
————————————————————————————————————————
|
||||||
----------------------------------------
|
|
||||||
BORING STUFF
|
BORING STUFF
|
||||||
----------------------------------------
|
————————————————————————————————————————
|
||||||
Based on Trout's server.
|
Based on Sergey's gist <sergey@polzunov.com>
|
||||||
Author is Jaidyn Ann <jadedctrl@teknik.io>
|
Author is Jaidyn Ann <jadedctrl@teknik.io>
|
||||||
|
License is BSD 3-Clause “New”, see COPYING.txt
|
||||||
Sauce is at https://git.eunichx.us/facilservil.git
|
Sauce is at https://git.eunichx.us/facilservil.git
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
(defsystem "facilservil"
|
(defsystem "facilservil"
|
||||||
:version "1.0"
|
:version "1.0"
|
||||||
|
:license "BSD 3-Clause"
|
||||||
:author "Jaidyn Lev <jadedctrl@teknik.io>"
|
:author "Jaidyn Lev <jadedctrl@teknik.io>"
|
||||||
:depends-on ("usocket" "flexi-streams" "bordeaux-threads")
|
:depends-on ("usocket" "flexi-streams" "bordeaux-threads")
|
||||||
:components ((:file "facilservil"))
|
:components ((:file "facilservil"))
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
;; facilservil.lisp
|
;; facilservil.lisp
|
||||||
;; A simple lib for making a TCP server.
|
;; Based on a server by Traut,
|
||||||
;; Based on a server by Trout,
|
|
||||||
;; https://gist.github.com/traut/6bf71d0da54493e6f22eb3d00671f2a9
|
;; https://gist.github.com/traut/6bf71d0da54493e6f22eb3d00671f2a9
|
||||||
;; which is in turn inspired by
|
;; which is in turn inspired by
|
||||||
; https://gist.github.com/shortsightedsid/71cf34282dfae0dd2528
|
;; https://gist.github.com/shortsightedsid/71cf34282dfae0dd2528
|
||||||
; https://gist.github.com/shortsightedsid/a760e0d83a9557aaffcc
|
;; https://gist.github.com/shortsightedsid/a760e0d83a9557aaffcc
|
||||||
; http://mihai.bazon.net/blog/howto-multi-threaded-tcp-server-in-common-lisp
|
;; http://mihai.bazon.net/blog/howto-multi-threaded-tcp-server-in-common-lisp
|
||||||
|
|
||||||
(defpackage :facilservil
|
(defpackage :facilservil
|
||||||
(:use :cl)
|
(:use :cl)
|
||||||
|
|
Ŝarĝante…
Reference in New Issue