摘要: http://zhidao.baidu.com/question/67382898.html 内网到外网用的是NAT技术(地址封装)外网到内网用的是端口映射(PNAT)计算机的端口又65535(0-65534),你说的那些有名气的端口大多都是0-1023之间的你说的这个问题很简单,但首先你要懂得数据是通过端口来传输的,路由器会记住机器用那个地址的那个端口发出去的信息比如: 192.168.0.2... 阅读全文
posted @ 2009-10-12 13:49 weRtogether 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: http://topic.csdn.net/t/20020220/15/534265.html 我的理解是: int select ( int nfds, fd_set FAR * readfds, fd_set FAR * writefds, fd_set FAR * exceptfds, const struct timeval FAR * timeout ); 第一個參數nf... 阅读全文
posted @ 2009-10-12 09:52 weRtogether 阅读(384) 评论(0) 推荐(0) 编辑
摘要: MSDN中,有: select The select function determines the status of one or more sockets, waiting if necessary, to perform synchronous I/O.int select( int nfds, fd_set* readfds, fd_set* writefds, fd_set* ... 阅读全文
posted @ 2009-10-12 09:31 weRtogether 阅读(1051) 评论(0) 推荐(0) 编辑