Hi,
>>when the connection request event occurs, create a new object to accept the request but I don't know how to create a new object, can any body tell me. It will be preciated if the code of ConnectionRequest event attached <<
Essentially, in ConnectionRequest():
LPARAMETERS tnRequestId
loRef = CreateObj("Winsock.winsock.1")
loRef.Accept(tnRequestId)
However this is an oversimplification. You will probably want to (a) subclass the WinSock control in VFP and (b) maintain some sort of collection pool of Sockets.
HTH,
Viv