Skip to content
/ ft_irc Public

This project is about creating your own IRC server. You will use an actual IRC client to connect to your server and test it. Internet is ruled by solid standards protocols that allow connected computers to interact with each other.

Notifications You must be signed in to change notification settings

0xakhii/ft_irc

Repository files navigation

ft_irc

ft_irc is a simple IRC (Internet Relay Chat) server implementation written in C. This project is designed to be compliant with the RFC 2812 standard, allowing multiple users to connect, chat, and create channels.

Features

  • Support for multiple users
  • Channel creation and management
  • Private messages
  • Basic IRC commands: JOIN, PART, PRIVMSG, NICK, QUIT, and more
  • Complies with the RFC 2812 standard

Getting Started

Prerequisites

Ensure you have the following installed:

  • Make: Used to build the project.
  • GCC: The GNU Compiler Collection for compiling C programs.
  • irssi: A popular terminal-based IRC client for testing your IRC server.

Installing Dependencies

  • On Debian/Ubuntu:
  sudo apt-get update
  sudo apt-get install make gcc irssi
  • On macOS (using homebrew):
brew install make gcc irssi

Cloning the Repository

To get a local copy up and running, clone the repository using the following command:

git clone https://github.com/yourusername/ft_irc.git
cd ft_irc

Building the Project

Once inside the project directory, build the project using make:

make

This will compile all the necessary source files and generate the ft_irc executable.

Running ft_irc

After building the project, you can start the IRC server with:

./ft_irc <port> <password>
  • <port>: The port number on which the server will listen.
  • <password>: The password required for clients to connect to the server.

Example

./ft_irc 6667 pass

Connecting to the Server You can connect to your IRC server using irssi or any other IRC client.

To connect using irssi, In another terminal run the following command:

irssi

Then, within irssi, connect to your server:

/connect localhost <port>

You will be prompted to enter a password, You have to enter the password you used when running the server:

/quote pass <password>

then enter your nickname

/quote nick <nickname>

then enter you will be prompted to enter a user name:

/quote user <username> 0 * :<real_name>

Once connected, you can create channels, send private messages to other clients, and more

About

This project is about creating your own IRC server. You will use an actual IRC client to connect to your server and test it. Internet is ruled by solid standards protocols that allow connected computers to interact with each other.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published