It is a fully functional IRC server implementation written in C++98 (not our desiсsion, but a requirement 😅), following the RFC 1459 / 2812 specifications. The project focuses on low-level networking, concurrent client handling, and full IRC protocol compliance without using external libraries.
make
./ircserv <port> <password>
Note
You can test with nc localhost <port>
or install hexChat client and use as any other IRC server :)
-
Non-blocking, multi-client server using
poll() -
Full IRC registration flow:
- PASS, NICK, USER
-
Channel management:
- JOIN (incl.
JOIN 0) - PART
- TOPIC (incl. empty topic:
TOPIC #chan :) - INVITE
- KICK
- JOIN (incl.
-
Channel modes:
- i – invite-only
- t – topic protected
- k – channel key
- o – operator privileges
- l – user limit
-
Operator system
- Per-channel operators
- Strict privilege checks
-
Messaging
- PRIVMSG (user ↔ user, user ↔ channel)
-
Client lifecycle handling
- QUIT
- Automatic disconnection
- Channel cleanup on last user leave
-
HexChat compatible
-
All numeric replies and errors implemented (RPL_XXX / ERR_XXX)
-
Connection & Keep-Alive Handling
- Full
PING/PONGsupport - Inactivity timeout & automatic cleanup
- Handles suspended (
Ctrl+Z) and frozen clients - Safe handling of partial TCP send/receive
- Prevents ghost and half-open connections
- Full