Simple chat server written in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
oss 37a5c497af Migrated from github (README was a little bit changed) 7 months ago
.gitignore Initial commit 7 months ago
LICENSE Initial commit 7 months ago
README.md Migrated from github (README was a little bit changed) 7 months ago
server.c Migrated from github (README was a little bit changed) 7 months ago

README.md

Simple chatserver

by oss

WARNING

This is an old program I wrote for fun, it has very dangerous pitfalls i.e. blocking send or functions like strncpy.

Usage

To start server just type:

./server

To connect to the server I use telnet as client:

telnet <hostname> 9034

Available Commands:

  • !welcome - prints welcome message.
  • !list - prints list of available rooms.
  • !help - prints help message.
  • !nick <newnick> - sets <newnick> to user.
  • !room <newroom> - changes user's room to <newroom>

Compilation

I compiled it on 64-bit linux using following command:

gcc server.c -Wall -Wextra -Wconversion -pedantic -std=gnu11 -o server