Skip to content

Chat client and server using UDP written in C (when you don't care if people receive your chat messages)

Notifications You must be signed in to change notification settings

gesslerpd/udp-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Chat client and server using UDP written in C (when you don't care if people receive your chat messages)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published