Giter Club home page Giter Club logo

ft_irc's Introduction

ft_irc

IRC Server:

This is an implementation of an IRC (Internet Relay Chat) server in C++.

Getting Started:

Prerequisites:

To compile and run this project, you will need a C++ compiler that supports C++ 98 standard, as well as the make utility.

Building:

To build the server, simply run the make command in the root directory of the project. This will generate an executable file called ircserv.

Running:

To start the server, run the ircserv executable file. The server will listen for incoming connections. You can specify a different port number(6660...6669) as a command-line argument, like so:

  • ./ircserv 6661

This will start the server on port 6661 instead.

Features:

The IRC server supports the following commands:

  • PASS: Used to set a 'connection password'.
  • NICK: Used to give user a nickname or change the existing one.
  • USER: Used at the beginning of connection to specify the username, hostname and realname of a new user.
  • QUIT: A client session is terminated with a quit message.
  • JOIN: Used by a user to request to start listening to the specific channel.
  • PART: Causes the user sending the message to be removed from the list of active members for all given channels.
  • MODE: Is provided so that users may query and change the characteristics of a channel.
  • TOPIC: Used to change or view the topic of a channel.
  • NAMES: Used to list all nicknames that are visible to user.
  • LIST: Used to list channels and their topics.
  • INVITE: Used to invite a user to a channel.
  • KICK: Used to request the forced removal of a user from a channel.
  • PRIVMSG: Used to send private messages between users, as well as to send messages to channels.
  • NOTICE: Used similarly to PRIVMSG.
  • WHOIS: Used to query information about particular user.
  • BOT: Used to interpret and execute commands given by users.

Architecture:

The server uses the TCP/IP protocol to communicate with clients. It uses the poll system call to handle multiple connections simultaneously.

The server is implemented as a single-threaded event loop. Incoming connections are accepted and added to a list of connected clients. Whenever data is received from a client, the server parses the data and performs the appropriate action (e.g. join a channel, send a message, etc.).

Contributors:

ft_irc's People

Contributors

boumlik-brahim avatar ishakzail avatar b-omayr 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.