阅读背景:

侦听两个不同端口的TCP服务器

来源:互联网 

I have a TCP server that is listening on two different ports . I created two different sockets one on port 8888 and one on port 6634. I listen on those ports and then i add the two sockets in FD_SET and pass them to select() function ... When a socket is ready to read i check with FD_ISSET to see on which port i have message to read .I have a TCP server that is listening on two di




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

分享到: