CnPack Forum


 
Subject: CNUDP是否能跨网段发送消息
topdemon
新警察
Rank: 1



UID 41276
Digest Posts 0
Credits 36
Posts 14
点点分 36
Reading Access 10
Registered 2008-11-14
Status Offline
Post at 2008-11-25 20:50  Profile | Blog | P.M. 
CNUDP是否能跨网段发送消息

能否告诉一下怎么设置

[ 本帖最后由 topdemon 于 2008-11-25 21:39 编辑 ]
Top
topdemon
新警察
Rank: 1



UID 41276
Digest Posts 0
Credits 36
Posts 14
点点分 36
Reading Access 10
Registered 2008-11-14
Status Offline
Post at 2008-11-26 10:10  Profile | Blog | P.M. 
两个网段数据库连接是通的,可就是UDP发送消息收不到,高手请帮忙解答一下
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-11-26 10:40  Profile | Blog | P.M. 
跨子网不是udp的特有性能而是ip的。只要能ping通,udp也应该能通,除非路由器上禁掉了udp协议。
Top
topdemon
新警察
Rank: 1



UID 41276
Digest Posts 0
Credits 36
Posts 14
点点分 36
Reading Access 10
Registered 2008-11-14
Status Offline
Post at 2008-11-26 10:59  Profile | Blog | P.M. 
也就是说只要不能PING就不能用是吗

[ 本帖最后由 topdemon 于 2008-11-26 11:00 编辑 ]
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-11-26 15:46  Profile | Blog | P.M. 
一般是的。
但不能ping通也可能只是路由器屏蔽了ICMP协议而已。
Top
topdemon
新警察
Rank: 1



UID 41276
Digest Posts 0
Credits 36
Posts 14
点点分 36
Reading Access 10
Registered 2008-11-14
Status Offline
Post at 2008-11-26 18:46  Profile | Blog | P.M. 
多谢呀,如果说在路由器上把UDP不屏蔽,那UDP也就可以跨网段了吗?
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-11-26 21:34  Profile | Blog | P.M. 
对。就像TCP一样,也就是说像内网能够通过路由器访问外网的网页一样的原理。
Top
topdemon
新警察
Rank: 1



UID 41276
Digest Posts 0
Credits 36
Posts 14
点点分 36
Reading Access 10
Registered 2008-11-14
Status Offline
Post at 2008-11-27 00:36  Profile | Blog | P.M. 
多谢
Top
 




All times are GMT++8, the time now is 2024-11-22 12:25

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.011656 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP