Commits

Cédric Bonhomme committed cb01d6d

Removed nickname question

Comments (0)

Files changed (2)

 s.connect((host, port))
 
 
-msg = input('Enter nickname >> ')
-s.send(bytes(msg, 'UTF-8'))
 while True:
     msg = input('CLIENT >> ')
     s.send(bytes(msg, 'UTF-8'))
             client.Close()
             break
         }
-        Log("ClientReader received ", client.Name, "> ", string(buffer))
+        Log("ClientReader received: ", client.Name, "> ", string(buffer))
         send := client.Name+"> "+string(buffer)
         client.Outgoing <- send
         for i := 0; i < 2048; i++ {
     for {
         select {
             case buffer := <-client.Incoming:
-                Log("ClientSender sending ", string(buffer), " to ", client.Name)
+                Log("ClientSender sending: ", string(buffer), " to ", client.Name)
                 count := 0
                 for i := 0; i < len(buffer); i++ {
                     if buffer[i] == 0x00 {
     go ClientSender(newClient)
     go ClientReader(newClient)
     clientList.PushBack(*newClient)
-    ch <-string(name + " has joined the chat.")
+    ch <-string(name + " has joined the chat")
 }
 
 // Main: Starts a TCP server and waits infinitely for connections