XNA networking on windows

断了今生、忘了曾经 提交于 2019-12-21 17:37:49

问题


  1. What are XNA's builtin network functionalities?
  2. Is it possible to use XNA's builtin network in windows? If so, any restrictions?

回答1:


If you use the Microsoft.Xna.Framework.Net namespace classes, you are restricted to local, subnet and Games for Windows Live (which means the developer having a Creator's club membership and players having a Silver/free GFWL membership).

However, as long as you're not planning on also supporting Xbox 360 or Zune (or Windows Phone 7), you can simply use the System.Net classes (though finding available games will be up to you and would require a server component).

See also:

  • Getting Started With Networked Games
  • How To: Create a Network Session
  • How To: Find and Join a Network Session



回答2:


Another solution is to use an external networking framework. I found lidgren some months ago. I didn't look at it yet, but it seems quite good.

Maybe it's what you're looking for.

Lidgren project

There are also code samples to start.



来源:https://stackoverflow.com/questions/2414470/xna-networking-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!