tcp-server and tcp-client added
This commit is contained in:
@@ -84,6 +84,9 @@
|
||||
|`(ls-dir dir)`|List a dir|List of directory entries|
|
||||
|`(is-file? filename)`|Returns true if passed filename is a file||
|
||||
|`(is-dir? filename)`|Returns true if passed filename is a directory||
|
||||
|`(tcp-server port handler)`|Starts listening on port and when request comes calls passed lambda and writes its returned value back to client. Lambda must return either string or two element list where first element is boolean and second string.When first element is true it closes listening socker.|(`tcp-server 7777 (lambda (str) (list #t (string-upcase str))))`|
|
||||
|`(tcp-client address port data)`|Opens connection to server on port, writes there data and returns response.|`(print (tcp-client "127.0.0.1" 7777 "abcd"))`|
|
||||
|`(is-dir? filename)`|Returns true if passed filename is a directory||
|
||||
|`(parse-csv string)`|Parse CSV string||
|
||||
|`(parse-json json_string)`|Parse JSON string||
|
||||
|`(save-csv ..)`|||
|
||||
|
||||
Reference in New Issue
Block a user