Taeil-Nam / IRC-Server

GameRC team project repository

Home Page:https://taeil-nam.github.io/IRC-Server/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ’ฌ GameRC ํ”„๋กœ์ ํŠธ

์ด ํ”„๋กœ์ ํŠธ๋Š” C++98์„ ์‚ฌ์šฉํ•˜์—ฌ IRC (Internet Relay Chat) ์„œ๋ฒ„๋ฅผ ๋งŒ๋“œ๋Š” ํ”„๋กœ์ ํŠธ์ด๋‹ค.


Architecture

GameRC Architecture ์ฐธ๊ณ .


๊ธฐ๋Šฅ

TCP/IP ํ†ต์‹ 

  • ์†Œ์ผ“์„ ์ด์šฉํ•œ TCP/IP ํ†ต์‹ .
  • IO ๋ฉ€ํ‹ฐํ”Œ๋ ‰์‹ฑ์„ ์œ„ํ•œ kqueue ์‚ฌ์šฉ.

IRC ํ”„๋กœํ† ์ฝœ

  • Internet Relay Chat (IRC) ํ”„๋กœํ† ์ฝœ ๊ตฌํ˜„.
  • ํด๋ผ์ด์–ธํŠธ์— ๋Œ€ํ•œ ์—ฐ๊ฒฐ ๋“ฑ๋ก.
  • ์‚ฌ์šฉ์ž ์ธ์ฆ, ์‚ฌ์šฉ์ž ๋‹‰๋„ค์ž„ ๋ฐ ์‚ฌ์šฉ์ž ์ด๋ฆ„ ๊ด€๋ฆฌ.
  • ์ฑ„๋„ ์ž…์žฅ ๋ฐ ๋น„๊ณต๊ฐœ ๋ฉ”์„ธ์ง€.
  • ์ฑ„๋„ ์šด์˜์ž ๋ฐ ์ผ๋ฐ˜ ์‚ฌ์šฉ์ž.
  • ์ฑ„๋„ ์šด์˜์ž์˜ ๋ช…๋ น์–ด ๊ตฌํ˜„ (KICK, INVITE, TOPIC, MODE).
  • DCC(Direct Client-to-Client)๋ฅผ ์ด์šฉํ•œ ํŒŒ์ผ ์ „์†ก.
  • Russian roulette ์ฑ—๋ด‡.

์„œ๋ฒ„ ๋ชจ๋‹ˆํ„ฐ๋ง

  • ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๋ชจ๋‹ˆํ„ฐ๋ง ์ฝ˜์†” ํ™”๋ฉด ์ง€์›.
  • ์„œ๋ฒ„ ๋กœ๊ทธ ๋ชจ๋‹ˆํ„ฐ๋ง.
  • ์„œ๋ฒ„ ์ƒํƒœ ๋ชจ๋‹ˆํ„ฐ๋ง.

๋กœ๊น…

  • ๋กœ๊ทธ ํŒŒ์ผ์— ๋ฉ”์„ธ์ง€ ๋กœ๊น….
  • syslog severity๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฉ”์„ธ์ง€ ๋ถ„๋ฅ˜.

๋™์  ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

BSD ๊ณ„์—ด ์‹œ์Šคํ…œ์—์„œ ์ž์ฃผ ์‚ฌ์šฉ๋  ๊ธฐ๋Šฅ์„ ๋™์  ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋กœ ๊ตฌํ˜„:

  • Display : ์ฝ˜์†” ์ž…์ถœ๋ ฅ.
  • Network : ๋„คํŠธ์›Œํฌ.
  • Event : IO ๋ฉ€ํ‹ฐํ”Œ๋ ‰์‹ฑ.
  • Logger : ๋กœ๊น….
  • Assert : ์ปค์Šคํ…€ Assert.

์‹œ์ž‘ํ•˜๊ธฐ

์‚ฌ์ „ ์š”๊ตฌ์‚ฌํ•ญ

  • Intel CPU Mac.
  • MacOS Version = 10.15.7.
  • Clang Version = 12.0.0.

์„ค์น˜

  1. Git clone
$> git clone [this repo]
  1. ํ”„๋กœ์ ํŠธ ํด๋”๋กœ ์ด๋™
$> cd [this repo]
  1. "make lib" ๋ช…๋ น์–ด๋กœ ๋™์  ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ƒ์„ฑ
$> make lib
  1. "make" ๋ช…๋ น์–ด๋กœ ํ”„๋กœ๊ทธ๋žจ ์ƒ์„ฑ
$> make

์‚ฌ์šฉ๋ฒ•

์•„๋ž˜์™€ ๊ฐ™์ด ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰ํ•œ๋‹ค:

$> ./ircserv [port] [password]
  • port = IRC ์„œ๋ฒ„์—์„œ ์‚ฌ์šฉํ•  ํฌํŠธ ๋ฒˆํ˜ธ.
  • password = ํด๋ผ์ด์–ธํŠธ ์—ฐ๊ฒฐ ๋“ฑ๋ก์„ ์œ„ํ•œ ๋น„๋ฐ€๋ฒˆํ˜ธ.

ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด

cplusplus

๋ผ์ด์„ผ์Šค

์ด ํ”„๋กœ๊ทธ๋žจ์€ MIT ๋ผ์ด์„ผ์Šค์— ๋”ฐ๋ผ ๋ผ์ด์„ผ์Šค๊ฐ€ ๋ถ€์—ฌ๋œ๋‹ค:

Copyright ยฉ 2024 Game Development Forever.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


ํŒ€ ๋ฉค๋ฒ„

About

GameRC team project repository

https://taeil-nam.github.io/IRC-Server/

License:MIT License


Languages

Language:C++ 63.7%Language:CSS 26.0%Language:JavaScript 7.7%Language:HTML 1.8%Language:Makefile 0.7%