阅读背景:

在连接调用后获取客户端端口(在C中)

来源:互联网 

I am browsing some source code which connects to a remote host on port P(using TCP). After the call to connect,(assuming successful), I would like to discover the client port of the connection (i.e the client port). In truth, I'm browsing the openssh source, in sshconnect.c, there is a function ssh_connect which calls timeout_connect. I have the remote host ip,port, local ip but would like to know the local (client) port after a successful connect.I am browsing some source code which connects t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: