Tölvusamskipti - Haustönn 2018
Chat server and client
OS we used to compile: Linux Ubuntu 18.04
fortune and g++ compiler needs to be installed. This can be done by running these commands:
- sudo apt install fortune
- sudo apt install g++
Instructions to test/run:
-
Open a terminal window in the folder with the server file
-
Compile the server: g++ server.cpp -o server
-
Run the server: ./server
-
Open another terminal window in the folder with the client file
-
Compile the client: g++ client.cpp -o client
-
Run the client with hostname of the server (if the server is on your localhost then you run): ./client localhost
-
Now you should have a connection and you can use the command that popped up on your client window