LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 794|回复: 3

how to retrieve destination port of received UDP packet?

[复制链接]
发表于 2006-5-8 04:59:08 | 显示全部楼层 |阅读模式
if i received a UDP packet from an unconnected socket, how could i retrieve the destination UDP port of the packet?
发表于 2006-5-8 10:43:37 | 显示全部楼层
你不知道自己在哪个端口开的服务?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-8 13:14:35 | 显示全部楼层
i mean, the client received UDP from server at ephemeral port.   how could I figure out the ephemeral port
回复 支持 反对

使用道具 举报

发表于 2006-5-8 14:02:28 | 显示全部楼层
打开原始套接字,直接从包头里读取
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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