bendordie / ft_irc

Internet Relay Chat (RFC 1459)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About The Project

screenshot

This is IRC-Server written on C++ language using standart of RFC1459. This allows you to connect to the server by netcat or any instant messaging client that supports multiple IM networks (Adium for example)

Getting started

Installation ⚙️

  1. Clone the repo
git clone https://github.com/divinepet/irc_server
  1. Compile the project
make
  1. Launch the server passing Port and Password for the server as a parameters
./ircserv 8000 1234

Usage

Connection 🔌

Now, you need to connect to the server. You can use netcat passing the server-ip and port in arguments like:

nc localhost 8000

If you are using Adium, you need to choose Irc-Server, create new client and fill out all the fields of the server settings

Registration 🔑

With nc client you should write three comamnds:

PASS server_password
NICK nickname
USER name host servername realname # (it could be any values, it doesn't matter)

Messaging ✉️

To write someone a message, use command PRIVMSG .
⚠️ Important: if you want to send more than 1 word to client, use : before the message. For example:

PRIVMSG john :hello there!

Other commands and usage can be find by the link: https://datatracker.ietf.org/doc/html/rfc1459

About

Internet Relay Chat (RFC 1459)


Languages

Language:C++ 99.8%Language:Makefile 0.2%