sock(0) is listening
NumSocks is the total number of socks
----------------
connection request



for a = 1 to NumSocks
if sock(a).state = 0 then 50
next a

NumSock=NumSocks+1

load sock(NumSocks)
a=NumSocks

50

Sock(a).accept requestid

etc etc