This project is a custom-built IRC server implemented in C++98 as part of the 42 School curriculum. It aims to deepen understanding of low-level network programming and the IRC protocol.
ft_irc is a standalone IRC server that communicates with standard IRC clients over TCP/IP using the IRC protocol. It handles multiple client connections simultaneously using a single poll() (or equivalent) loop and offers core IRC functionality, including user authentication, private messaging, channel management, and operator privileges.
- TCP-based IRC server listening on a user-defined port
- Non-blocking I/O using
poll()(orselect()) - Client authentication with password
- Nickname and username management
- Channel creation and joining
- Real-time private and public messaging
- Operator role system with support for:
KICK– Remove a user from a channelINVITE– Invite user to a channelTOPIC– Set/view channel topicMODE– Manage channel modes:i– Invite-onlyt– Topic change restrictionsk– Channel key/passwordo– Operator privilegesl– User limit
- IRC Bot with automated responses
make./ircserv <port> <password>port: Port number to listen onpassword: Required password for clients to connect
You can use any IRC client (e.g., irssi, weechat, or HexChat) to connect:
/connect 127.0.0.1 <port> <password>To test manually using netcat:
nc -C 127.0.0.1 6667Send partial commands with Ctrl+D to test packet aggregation:
com^Dman^Dd
- Language: C++98
- Network: BSD sockets, poll()
- Platform: Linux / macOS
.
├── src/ # Source files
├── include/ # Header files
├── Makefile # Build instructions
└── README.md # Project documentation
- Only one
poll()(or equivalent) instance - No
fork()or blocking I/O - No external libraries or Boost
- Pure C++98 compliance with
-Wall -Wextra -Werror
This project was developed by a group of 3 students from [42Vienna].
- vaismand
- RubenPin90
- Poddani
This project is for educational purposes and does not include a specific license.