Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 833 Bytes

readme.md

File metadata and controls

63 lines (42 loc) · 833 Bytes

udp-chat

Chat server and client using the User Datagram Protocol (UDP)

screenshot

Building

$ make

Client

$ make client

or

$ gcc -o client src/client.c -pthread

Server

$ make server

or

$ gcc -o server src/server.c

Running

Client

$ ./client [server] [port] [username]

e.g.

$ ./client localhost 32505 gesslerpd
or
$ ./client 127.0.0.1 32505 gesslerpd

Client Commands

list - Will list all the other currently connected clients

close - Will disconnect you from the server and exit the program

exit - Will shutdown the server and exit the program

Server

$ ./server [port]

e.g.

$ ./server 32505