windows2003默认已经不准重复绑定端口了
这个东西和以前的《PHP下实现端口复用/劫持》是完全不一样的,那个文章可以在这里找到:http://www.west999.com/info/html/wangluobiancheng/Phpbiancheng/20080224/22439.html
<?php
class select
{
var $sockets;// 构造函数
function select($sockets)
{
$this->sockets = array();foreach($sockets as $socket)
{
$this->add($socket);
}
}function add($add_socket)
{
//array_