From 0e1636e816dc58d26bf9686f2307b17043d0b218 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Fri, 14 Apr 2017 09:40:01 -0400 Subject: Hermes is pre-alpha ready --- Hermes/TODO | 8 ++++---- 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 -- cgit v1.2.3