Giter Club home page Giter Club logo

chat-server's Introduction

Chat Server

Build Status

Simple chatroom in C loosely based on IRC. This project demonstrates the basic use of sockets. There is no client available but any telnet client will do. Just connect to the server on the specified port and address. By default port 5000 is used. The project was intended to run on Linux and Unix based systems. However with minor changes you'd be able to run it on Windows.

Build

Run GNU make in the repository

make

Then start

./chat_server

Or build an executable with debug symbols

make debug

Features

  • Small code base (< 350 LOC)
  • Accept multiple client (max 100)
  • Name and rename users
  • Send private messages
  • Easily extenable

Chat commands

Command Parameter
/quit Leave the chatroom
/ping Test connection, responds with PONG
/topic [message] Set the chatroom topic
/nick [nickname] Change nickname
/msg [reference] [message] Send private message
/list Show active clients
/help Show this help

For the SSL version of the chat server check out the Chat Server Secure repository.

chat-server's People

Contributors

flouthoc avatar navyazaveri avatar yorickdewid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.