Updated license

This commit is contained in:
Jaidyn Levesque 2019-11-11 09:51:34 -06:00
parent 023c4b7d8a
commit f7889a09ba
4 changed files with 37 additions and 19 deletions

22
COPYING.txt Normal file
View File

@ -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.

View File

@ -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.
----------------------------------------
————————————————————————————————————————
FEATURES
----------------------------------------
————————————————————————————————————————
* Multi-threaded
* Input-handling
* Logging system
* UTF-8
----------------------------------------
————————————————————————————————————————
DEMONSTRATION
----------------------------------------
————————————————————————————————————————
Load up Facilservil, then run this in your repl:
(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.
----------------------------------------
————————————————————————————————————————
USAGE
----------------------------------------
————————————————————————————————————————
To use Facilservil, just use the `facilservil:server` function somewhere.
"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.
----------------------------------------
————————————————————————————————————————
BORING STUFF
----------------------------------------
Based on Trout's server.
————————————————————————————————————————
Based on Sergey's gist <sergey@polzunov.com>
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

View File

@ -1,5 +1,6 @@
(defsystem "facilservil"
:version "1.0"
:license "BSD 3-Clause"
:author "Jaidyn Lev <jadedctrl@teknik.io>"
:depends-on ("usocket" "flexi-streams" "bordeaux-threads")
:components ((:file "facilservil"))

View File

@ -1,11 +1,10 @@
;; facilservil.lisp
;; A simple lib for making a TCP server.
;; Based on a server by Trout,
;; Based on a server by Traut,
;; https://gist.github.com/traut/6bf71d0da54493e6f22eb3d00671f2a9
;; which is in turn inspired by
; https://gist.github.com/shortsightedsid/71cf34282dfae0dd2528
; https://gist.github.com/shortsightedsid/a760e0d83a9557aaffcc
; http://mihai.bazon.net/blog/howto-multi-threaded-tcp-server-in-common-lisp
;; https://gist.github.com/shortsightedsid/71cf34282dfae0dd2528
;; https://gist.github.com/shortsightedsid/a760e0d83a9557aaffcc
;; http://mihai.bazon.net/blog/howto-multi-threaded-tcp-server-in-common-lisp
(defpackage :facilservil
(:use :cl)