FreeNet
- C# Network library. Asynchronous. TCP. GameServer.
- Email me if you have any questions : [email protected]
Version
- v0.1.1 Apply .Net Core
- v0.1.0 Heartbeat
- v0.0.1
ํ๋ก์ ํธ ์ ๋ณด
- C# ๋น๋๊ธฐ ๋คํธ์ํฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ.
- ๊ฒ์ ์๋ฒ์์ ์ฌ์ฉํ ์ ์๋ TCP๊ธฐ๋ฐ์ socket server.
- .Net Core ์ฌ์ฉ
- Unity ์ฐ๋ ๊ฐ๋ฅ (.NetFramework๋ฒ์ ์ผ๋ก ๋ฐ๊ฟ์ ๋น๋ํด์ผ ์ฐ๋ ๊ฐ๋ฅํจ)
Project info
- C# Asynchronous network library.
- TCP socket server that can be used in game server.
- .Net Core
- Available in unity3d (need to use .NetFramework instead of .NetCore).
ํ ์คํธ ํด๋ผ์ด์ธํธ
- cgciiํํ์ด์ง์ ๊ณต๊ฐ๋ ํ ์คํธํด์ ํ์ฉ.
- ๋ค์ด๋ก๋ ํ์ด์ง : http://www.cgcii.co.kr/index.php?mid=board_eLHH13&document_srl=1936
- ํ ์คํธ ํด๋ผ์ด์ธํธ ๋ค์ด๋ก๋ ๋งํฌ : http://www.cgcii.co.kr/?module=file&act=procFileDownload&file_srl=2976&sid=ed18a57f286b4fd7490ebd0fc2da9dcd&module_srl=1910
ํ ์คํธ ์๋ฒ
- ํ๋ก์ ํธ์ ํฌํจ๋์ด ์๋ CSampleServerํ๋ก์ ํธ๋ฅผ ์ฌ์ฉ.
ํ ์คํธ๋ฅผ ์ํ ์ฝ๋ ์์
- ํํธ๋นํธ ๋๊ธฐ : ํ
์คํธ ํด๋ผ์ด์ธํธ์๋ ํํธ๋นํธ ๊ธฐ๋ฅ์ด ์์ผ๋ฏ๋ก ์๋ฒ์์ ๊บผ์ค์ผํ๋ค
- CSampleServer/Program.cs 29๋ฒ์งธ์ค์ ์ฃผ์์ ์ ๊ฑฐํ์ฌ CNetworkService.disable_heartbeat()๋ฅผ ํธ์ถํ๋ค.
- ์์ฝ ์๋ฒ ๊ธฐ๋ฅ ํ์ฑํ : ํ
์คํธ ํด๋ผ์ด์ธํธ์์ ๋ณด๋ด๋ ํจํท์ ๊ทธ๋๋ก ๋๋ ค์ฃผ๋ ์์ฝ์๋ฒ ๊ธฐ๋ฅ์ ํ์ฑํ ํ๋ค
- CSampleServer/CGameUser.cs 52,53๋ฒ์งธ์ค์ ์ฃผ์์ ์ ๊ฑฐํ๋ค.
ํ ์คํธ ์งํ
- ํ ์คํธ ์๋ฒ์ ํ ์คํธ ํด๋ผ์ด์ธํธ๋ฅผ ์คํํ๋ค.
- ๊ทธ๋ฆผ์ ๋์จ ์์๋๋ก ํ ์คํธ๋ฅผ ์งํํ๋ค.
- Times ํญ๋ชฉ์ ๋๋ ค๊ฐ๋ฉฐ ์ฑ๋ฅ์ ํ ์คํธํ๋ค(์ฃผ์:๊ณผ๋ํ๊ฒ๋๋ฆด๊ฒฝ์ฐ PC๊ฐ ๋ฐ์ด๋ ์์์!!).
Sample Game
- FreeNet๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ํ์ฉํ์ฌ Unity๋ก ๋ง๋ ์จ๋ผ์ธ ๋ฉํฐํ๋ ์ด ๋ณด๋ ๊ฒ์ ์ธ๊ท ์ .
- The VirusWar that online multiplay board game sample developed using FreeNet and Unity.
์ํคํ ์ฒ ๋ฐ ๊ตฌ์กฐ ย
Structure
๋ผ์ด์ ์ค
- ์์ค์ฝ๋๋ ์์ ์ , ๋น์์ ์ ์ด๋ ์ฉ๋์ด๋ ์์ ๋กญ๊ฒ ์ฌ์ฉ ๊ฐ๋ฅ ํฉ๋๋ค.
License
- All source codes are free to use commercially also.