A Fake IRC program
Make sure to compile both programs with the -pthread
header included
$ gcc client.c -o client -pthread
$ gcc server.c -o server -pthread
To run the client you only need to include the arguments:
-
Server's IP or hostname (Yay! Implemented :-p )
-
Server's port (1234 By default)
-
Username (50 chars only) to appear in the chatroom
$ ./client localhost 1234 UserName
To run the server you only need to run it
$ ./server