游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3151|回复: 9

uPnP + DIRECTPLAY 是不是一个好选择?

[复制链接]

24

主题

134

帖子

134

积分

注册会员

Rank: 2

积分
134
QQ
发表于 2007-3-28 14:42:00 | 显示全部楼层 |阅读模式
在研究开发一个FPS游戏,遇上了路由器问题,找了一些资料,决定用UPNP + DIRECTPLAY?

大家有没有什么意见??

10

主题

69

帖子

69

积分

注册会员

Rank: 2

积分
69
发表于 2007-3-28 18:06:00 | 显示全部楼层

Re: uPnP + DIRECTPLAY 是不是一个好选择?

I'm doing this now

     but I don't know what IDirectPlay8NATResolver Interface does.

     I run SimpleServer(sdk sample) on my computer with ip-192.168.2.105 port-85, and map router(218.86.xxx.xxx) 85 port to my computer 85 port.then, a remote computer run SimpleClient. let it search 218.86.xxx.xxx:85. SimpleClient can't find any Session on remote computer.
     if I provide a IDirectPlay8NATResolver for IDirectPlay8Address,the SimpleClient maybe find the Session???

10

主题

69

帖子

69

积分

注册会员

Rank: 2

积分
69
发表于 2007-3-28 19:55:00 | 显示全部楼层

Re:uPnP + DIRECTPLAY 是不是一个好选择?

I think this way is a big trouble

DirectPlay implement some protocols on top of tcp or udp protocol,I guess,these protocols reject any packets which forward from a router.

2

主题

17

帖子

17

积分

新手上路

Rank: 1

积分
17
QQ
发表于 2007-3-29 08:03:00 | 显示全部楼层

Re:uPnP + DIRECTPLAY 是不是一个好选择?

谢谢回贴,看来朋友比我们更早遇上这个问题,我们对DPLAY了解,但对UPNP就......
一个笨问题,在朋友的技术评估中UPNP可不可以解决NAT的问题???

我们开始找资料和例子,朋友有没有兴趣一起解决这问题??

10

主题

69

帖子

69

积分

注册会员

Rank: 2

积分
69
发表于 2007-3-29 10:29:00 | 显示全部楼层

Re:uPnP + DIRECTPLAY 是不是一个好选择?

resolved this problem

upnp(Universal Plug and Play ) is a technique about router.

if a router support upnp,directplay use it automatically.

if a router without upnp supported,you must map port on the router(Server Side).
your client(IDirectPlay8Client) will connect to your server(IDirectPlay8Server) successfully.

note:
DirectPlay8 base on UDP protocol

59

主题

1490

帖子

1496

积分

金牌会员

Rank: 6Rank: 6

积分
1496
发表于 2007-3-29 11:13:00 | 显示全部楼层

Re:uPnP + DIRECTPLAY 是不是一个好选择?

如果你是做一个FPS单机游戏,需要加上局域网功能,选择DirectPlay8是可以地。

但限制也是明显的。一是限于局域网,另一个是一个Session的上限人数 < 30人。

基本情况就是这样。

17

主题

258

帖子

264

积分

中级会员

Rank: 3Rank: 3

积分
264
发表于 2007-3-29 20:06:00 | 显示全部楼层

Re:uPnP + DIRECTPLAY 是不是一个好选择?

自己手动socket,用tcp不错.

24

主题

134

帖子

134

积分

注册会员

Rank: 2

积分
134
QQ
 楼主| 发表于 2007-3-30 07:45:00 | 显示全部楼层

Re: uPnP + DIRECTPLAY 是不是一个好选择?

[em10]不好意思,再问清楚一些,我们现在是用DX8 DPLAY P2P连线技术,找不到DPLAY直接使用UPNP的方法,是不是只有在DX9下才可以直接使用UPNP??

假如DX8也可以重点或设定那一个指令???希望明灯指路。

59

主题

1490

帖子

1496

积分

金牌会员

Rank: 6Rank: 6

积分
1496
发表于 2007-3-30 07:50:00 | 显示全部楼层

Re:uPnP + DIRECTPLAY 是不是一个好选择?

这边看来前途黑暗,没有灯。基本思路上是乱七八糟。

不知道conquerors在乱说什么。DX9下也没有使用UPNP的方法。

误人不浅啊。。。


0

主题

275

帖子

676

积分

高级会员

Rank: 4

积分
676
发表于 2007-3-30 12:13:00 | 显示全部楼层

Re:uPnP + DIRECTPLAY 是不是一个好选择?

?而言之至少要有一??真??IP????如果玩家都躲在NAT後面
就要有代理的伺服器?椭?B?

不?都在?^?就不必了...因?榇蠹彝????,互相看的到
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-4-13 00:36

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表