• Stars
    star
    121
  • Rank 292,630 (Top 6 %)
  • Language
    C#
  • Created over 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

C# Network library. Asynchronous. TCP. GameServer.

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).

ํ…Œ์ŠคํŠธ ํด๋ผ์ด์–ธํŠธ

ํ…Œ์ŠคํŠธ ์„œ๋ฒ„

  • ํ”„๋กœ์ ํŠธ์— ํฌํ•จ๋˜์–ด ์žˆ๋Š” CSampleServerํ”„๋กœ์ ํŠธ๋ฅผ ์‚ฌ์šฉ.

ํ…Œ์ŠคํŠธ๋ฅผ ์œ„ํ•œ ์ฝ”๋“œ ์ˆ˜์ •

  • ํ•˜ํŠธ๋น„ํŠธ ๋„๊ธฐ : ํ…Œ์ŠคํŠธ ํด๋ผ์ด์–ธํŠธ์—๋Š” ํ•˜ํŠธ๋น„ํŠธ ๊ธฐ๋Šฅ์ด ์—†์œผ๋ฏ€๋กœ ์„œ๋ฒ„์—์„œ ๊บผ์ค˜์•ผํ•œ๋‹ค
    • CSampleServer/Program.cs 29๋ฒˆ์งธ์ค„์˜ ์ฃผ์„์„ ์ œ๊ฑฐํ•˜์—ฌ CNetworkService.disable_heartbeat()๋ฅผ ํ˜ธ์ถœํ•œ๋‹ค.
  • ์—์ฝ” ์„œ๋ฒ„ ๊ธฐ๋Šฅ ํ™œ์„ฑํ™” : ํ…Œ์ŠคํŠธ ํด๋ผ์ด์–ธํŠธ์—์„œ ๋ณด๋‚ด๋Š” ํŒจํ‚ท์„ ๊ทธ๋Œ€๋กœ ๋Œ๋ ค์ฃผ๋Š” ์—์ฝ”์„œ๋ฒ„ ๊ธฐ๋Šฅ์„ ํ™œ์„ฑํ™” ํ•œ๋‹ค
    • CSampleServer/CGameUser.cs 52,53๋ฒˆ์งธ์ค„์˜ ์ฃผ์„์„ ์ œ๊ฑฐํ•œ๋‹ค.

ํ…Œ์ŠคํŠธ ์ง„ํ–‰

  1. ํ…Œ์ŠคํŠธ ์„œ๋ฒ„์™€ ํ…Œ์ŠคํŠธ ํด๋ผ์ด์–ธํŠธ๋ฅผ ์‹คํ–‰ํ•œ๋‹ค.
  2. ๊ทธ๋ฆผ์— ๋‚˜์˜จ ์ˆœ์„œ๋Œ€๋กœ ํ…Œ์ŠคํŠธ๋ฅผ ์ง„ํ–‰ํ•œ๋‹ค.
  • Test
  1. Times ํ•ญ๋ชฉ์„ ๋Š˜๋ ค๊ฐ€๋ฉฐ ์„ฑ๋Šฅ์„ ํ…Œ์ŠคํŠธํ•œ๋‹ค(์ฃผ์˜:๊ณผ๋„ํ•˜๊ฒŒ๋Š˜๋ฆด๊ฒฝ์šฐ PC๊ฐ€ ๋”ฐ์šด๋ ์ˆ˜์žˆ์Œ!!).

Sample Game

viruswar

  • FreeNet๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ํ™œ์šฉํ•˜์—ฌ Unity๋กœ ๋งŒ๋“  ์˜จ๋ผ์ธ ๋ฉ€ํ‹ฐํ”Œ๋ ˆ์ด ๋ณด๋“œ ๊ฒŒ์ž„ ์„ธ๊ท ์ „.
  • The VirusWar that online multiplay board game sample developed using FreeNet and Unity.

์•„ํ‚คํ…์ฒ˜ ๋ฐ ๊ตฌ์กฐ ย 

structure class structure worker logic send

Structure

structure class structure worker logic send

๋ผ์ด์„ ์Šค

  • ์†Œ์Šค์ฝ”๋“œ๋Š” ์ƒ์—…์ , ๋น„์ƒ์—…์  ์–ด๋Š ์šฉ๋„์ด๋“  ์ž์œ ๋กญ๊ฒŒ ์‚ฌ์šฉ ๊ฐ€๋Šฅ ํ•ฉ๋‹ˆ๋‹ค.

License

  • All source codes are free to use commercially also.