"draw a winsock control"
That means to click and drag it from your tool box onto your canvas (your main form).
It will be in your toolbox after you select it as a desired component.
On a fairly old project of mine.. I have a winsock being used... I named it, wskClient1.
Some code associated with it is:
wskClient1.LocalIP 'Gets the local IP
wskClient1.SendData (s) 'Sends the contents of s (a string) over to the server.
Form Load can have stuff like this...
With wskClient1
.Protocol = sckUDPProtocol
.RemotePort = 5000
.RemoteHost = .LocalIP
.Bind 4000
End With
With wskClient2
.Protocol = sckUDPProtocol
.RemotePort = 4000
.RemoteHost = .LocalIP
.Bind 5000
End With
This is one form acting as client and server (you can change one of the winsocks up to be a remote server, by changing the IP, etc.)
Data arrives to a winsock control in this method...
Private Sub wskClient1_DataArrival(ByVal bytesTotal As Long)
...
wskClient1.GetData strData 'Gets the data
'do something
...
End Sub
---
The above, may confuse you... but don't let it. Its fairly simple.
To get data via the Data Arrival event:
wskClient1.GetData myString
To send data:
wskClient1.SendData strData
Setting up the winsock on form load...
wskClient1.Protocol = sckUDPProtocol
wskClient1.RemotePort = 5000
wskClient1.RemoteHost = .LocalIP
wskClient1.Bind 4000
That either helped out or confused the hell out of you, let me know if you need clerification.
IR