socket.listen()
rfds=[]
wfds=[]
while(select(rfds,wfds,timeout)){//事件循环
client=socket.accept(timeout)
if(client)
rfds.push(client)
wfds.push(client)
if(rfds){//读事件处理
rfds.forEach(function(client){
)
}
if(wfds)//写事件处理{