diff options
author | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2017-04-14 09:40:01 -0400 |
---|---|---|
committer | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2017-04-14 09:40:01 -0400 |
commit | 0e1636e816dc58d26bf9686f2307b17043d0b218 (patch) | |
tree | ba9ab8930b8e4c93b4a6743431d0c74a9505741b | |
parent | f8fef5c5ae63c0933f92a25d82da447ff44c2444 (diff) |
Hermes is pre-alpha ready
-rw-r--r-- | Hermes/TODO | 8 | ||||
-rw-r--r-- | Hermes/client.rkt | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/Hermes/TODO b/Hermes/TODO index c8dbc75..8ad5a92 100644 --- a/Hermes/TODO +++ b/Hermes/TODO @@ -1,14 +1,14 @@ +FEATURES 1. Create a racket module for commonly used functions -2. Log messages to proper file on server +2. Log error messages and channel conservations to proper files on server 4. message parsable? 5. command parsable? -6. keep count of connected clients using object orientation 7. maybe fiddle around with irc library 8. separate main running code from definitions 10. authentication for databases 11. user can ask for no of logged in users. Server has to pars e 12. Hide user's own input in command line -** 13. Need to gracefully handle disconnected clients by removing from list user filter -of connections 14. bye message prompt for clients +15. Session stickiness for clients +16. plain tcp -> ssl based diff --git a/Hermes/client.rkt b/Hermes/client.rkt index 9b7d4a0..3b65cfa 100644 --- a/Hermes/client.rkt +++ b/Hermes/client.rkt @@ -4,6 +4,9 @@ ;; author: Ibrahim Mkusa ;; about: print and read concurrently ;; notes: output may need to be aligned and formatted nicely +(define host "10.0.0.160") ; internal home +(define host2 "67.186.191.81") +(define port-num 4321) ; custodian for client connections @@ -12,7 +15,7 @@ (define (client port-no) (parameterize ([current-custodian main-client-cust]) ;; connect to server at port 8080 - (define-values (in out) (tcp-connect "localhost" port-no)) ;; define values + (define-values (in out) (tcp-connect host2 port-no)) ;; define values (display in) (displayln out) ;; binds to multiple values akin to unpacking tuples in python |