由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - dynamic assigned port number for UDP socket, need help!
相关主题
Is it possible to bind several sockets to 1 port?install package on hp-ux, help!
socket编程问题How to send packet on a chosen interface?THX!
a difficult questionÇëÎÊ在C里如何把一个UDP的socket设置成nonblocking模式?
[转载] Re: about incoming emailRe: ÇëÎÊ在C里如何把一个UDP的socket设置成nonblo
who knows how to use nslookup?怎么用一个UDP的port来接收和发送信息?
how to config telnetd so that no timeout when using telnet from remote?ns2 question!
what's the relation bt UNIX and SUN workstation?为什么这段代码在FreeBSD上不work? (编译没问题)
[转载] 请问有没有类似smth,mit BBS(含技术版)的国外BBS?proxy telnet to internet
相关话题的讨论汇总
话题: udp话题: port话题: socket话题: number话题: assigned
进入Unix版参与讨论
1 (共1页)
x****a
发帖数: 817
1
Hi Gurus,
Maybe you guys can help me out on this one...
After binding an address to an UDP socket, with the port
number unspecified. How could I get back the info of what
port number system just assigned to that socket?
Thanks.
XXW
h******a
发帖数: 198
2
1.first assign port equal 0
2. getsockname() get the dynamic port number.

【在 x****a 的大作中提到】
: Hi Gurus,
: Maybe you guys can help me out on this one...
: After binding an address to an UDP socket, with the port
: number unspecified. How could I get back the info of what
: port number system just assigned to that socket?
: Thanks.
: XXW

1 (共1页)
进入Unix版参与讨论
相关主题
proxy telnet to internetwho knows how to use nslookup?
帮忙:怎样知道UDP socket里queue了多少data?how to config telnetd so that no timeout when using telnet from remote?
[转载] 请推荐一个unix下的防火墙软件what's the relation bt UNIX and SUN workstation?
重定向操作是什么时候返回的?[转载] 请问有没有类似smth,mit BBS(含技术版)的国外BBS?
Is it possible to bind several sockets to 1 port?install package on hp-ux, help!
socket编程问题How to send packet on a chosen interface?THX!
a difficult questionÇëÎÊ在C里如何把一个UDP的socket设置成nonblocking模式?
[转载] Re: about incoming emailRe: ÇëÎÊ在C里如何把一个UDP的socket设置成nonblo
相关话题的讨论汇总
话题: udp话题: port话题: socket话题: number话题: assigned