Skip to content

Simple chat room in C using TCP/IP sockets (IPv4 and IPv6).

License

Notifications You must be signed in to change notification settings

dragonator/chat-room

Repository files navigation

alt text

Chat Room

Simple C implementation of chat room using TCP/IP sockets (IPv4 and IPv6).

For client you can use telnet, netcat or other similar tool.

Install

$ git clone git@github.com:dragonator/chat-room.git
$ cd chat-room
$ make

Start Server

$ ./chat_room

Connect Client

Using telnet: $ telnet ...

Using netcat: $ netcat ...

Chat commands

The following commands are available:

Command Description
.name Pick nickname. Nicknames can contain only letters, numbers and underscope.
.msg Send message to other user.
.msg_all Send message to all users.
.list Show list of users in the room.
.quit Leave the chat room.