Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winsock
Message
From
14/01/2003 05:15:12
 
 
To
13/01/2003 23:51:23
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00741288
Message ID:
00741338
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform