Giter VIP home page Giter VIP logo

ft_irc's Introduction

๐Ÿ“ฎ IRC SERVER

Internet Relay Chat

GitHub last commit Repository size GitHub top language

Table of Contents
  1. About The Project
  2. Our commands
  3. Usage
  4. Contributors
  5. Resources

๐Ÿค” About

This project is about creating our own IRC server. We used an actual IRC client to connect to our server and test it. IRC (Internet Relay Chat) is a protocol for real-time text messaging between internet-connected computers created in 1988. It is mainly used for group discussion in chat rooms called โ€œchannelsโ€ although it supports private messages between two users, data transfer, and various client-side commands.

Skills

  • Network & system administration
  • Rigor
  • Object-oriented programming

Our grade

Mandatory part

  • We have to develop an IRC server in C++ 98.
  • The server must be capable of handling multiple clients at the same time and never hang.
  • Only 1 poll() (or equivalent) can be used for handling all these operations (read, write, but also listen, and so forth).
  • An IRC client must be able to connect to your server without encountering any error.
  • Communication between client and server has to be done via TCP/IP (v4).
  • Using the IRC client with our server must be similar to using it with any official IRC server. However, we only have to implement the following features:
    • We must be able to authenticate, set a nickname, a username, join a channel, send and receive private messages using the IRC client.
    • All the messages sent from one client to a channel have to be forwarded to every other client that joined the channel.
    • We must have operators and regular users.
    • Then, we have to implement the commands that are specific to operators.

๐Ÿ”‘ Our IRC Commands

These are the available commands in our IRC Server:

  • PASS: The PASS command is used to set a 'connection password'.
  • NICK: NICK command is used to give user a nickname or change the existing one.
  • USER: he USER command is used at the beginning of connection to specify the username, hostname and realname of a new user.
  • OPER: A normal user uses the OPER command to obtain operator privileges.
  • MODE: The user MODE's are typically changes which affect either how the client is seen by others or what 'extra' messages the client is sent.
  • QUIT: A client session is terminated with a quit message.
  • JOIN: The JOIN command is used by a user to request to start listening to the specific channel.
  • PART: The PART command causes the user sending the message to be removed from the list of active members for all given channels listed in the parameter string.
  • TOPIC: The TOPIC command is used to change or view the topic of a channel.
  • KICK: The KICK command can be used to request the forced removal of a user from a channel.
  • PRIVMSG: PRIVMSG is used to send private messages between users, as well as to send messages to channels.
  • NOTICE: The NOTICE command is used similarly to PRIVMSG.

โš™๏ธ Start IRC Server

To compile the program, use:

  • make To start the Server, use:
  • ./ircserv <port> <password>
    • port: The port number on which your IRC server will be listening to for incoming IRC connections.
    • password: The connection password. It will be needed by any IRC client that tries to connect to your server. To connect to the server, you can use:
  • nc <IP ADDRESS> <PORT>
    • IP ADDRESS: Host IP address.
    • PORT: The PORT that the server listening on.
  • You can also use an IRC Client e.g LimeChat, WeeChat...

๐Ÿ’ช Contributers

Abdulaziz Abduvakhobov
โ€ƒ42intra profile : aabduvak

Arbi Elmas
โ€ƒ42intra profile : arelmas

ร–mer Faruk ร–z
โ€ƒ42intra profile : ooz

๐Ÿ‘จโ€๐Ÿ’ป Resources


"Buy Me A Coffee"

ft_irc's People

Contributors

aabduvak avatar

Stargazers

 avatar

Watchers

 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.