C#游戏网络库 [英] C# Game Network Library

查看:367
本文介绍了C#游戏网络库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用.Net v2开发在线策略游戏.尽管游戏主要是战略性的,但它确实具有一些战术要素,需要合理的网络性能.我计划将TCP数据包用于战略数据,将UDP数据包用于战术数据.

{EDIT}我忘记提到出于某些原因,我倾向于使用WCF和.NET 3+.首先,因为我想减小下载量,所以我的大多数客户已经安装了.NET 2.0.其次,因为我想选择移植到Mac和Linux,并且不确定Mono中WCF的可用性. {/EDIT}

我正在寻找网络图书馆的建议.我找到了一些选项,例如GarageGames的Torque网络库(C ++),RakNet(C ++)和Liggren网络库(C#):

http://www.opentnl.org/ http://www.jenkinssoftware.com/ http://code.google.com/p/lidgren-network/

有人对这些或其他库有现实经验吗?


我偶然发现了RakNetDotNet:

http://code.google.com/p/raknetdotnet/

这可能是我正在寻找的

解决方案

为什么要限制自己使用.NET 2.0. .NET 3.0(或3.5)包含WCF,并且是一个可靠的,高性能的通信子系统,具有良好的安全性. .NET 3.0只是具有附加库(WCF,WF,WPF)的.NET 2.0.

I am developing an online strategy game using .Net v2. Although the game is primarily strategic, it does have some tactical elements that require reasonable network performance. I plan to use TCP packets for strategic data and UDP packets for tactical data.

{EDIT} I forgot to mention that I am leaning away from WCF and .NET 3+ for a couple of reasons. First, because I want to keep my download small and most of my customers already have .NET 2.0. Second, because I would like to have the option of porting to Mac and Linux and am unsure of WCF availability in Mono. {/EDIT}

I am looking for network library recommendations. I have found a few options, such as GarageGames' Torque Network Library (C++), RakNet (C++), and the lidgren network library (C#):

http://www.opentnl.org/ http://www.jenkinssoftware.com/ http://code.google.com/p/lidgren-network/

Does anyone have real-world experience with these or other libraries?


I just stumbled on RakNetDotNet:

http://code.google.com/p/raknetdotnet/

This might be what I'm looking for...

解决方案

Why limit yourself to .NET 2.0. .NET 3.0 (or 3.5) contains WCF and is a solid, performant communications subsystem with good security. .NET 3.0 is just .NET 2.0 with additional libraries (WCF, WF, WPF).

这篇关于C#游戏网络库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆