Re: WinSock - Please help
I recommend you approach this using the Winsock controls rather than using the Winsock API. You'll find the process much more straightforward.
Charlie Zimmerman
http://www.freevbcode.com
Re: WinSock - Please help
I would like to do that but I am trying to put this solution into an AddIn. So I thought programming is the right way rather than using the control. What is your suggestion.
Thanks
Ash
Re: WinSock - Please help
You can use .bas which has almost all the functions mswinsck.ocx has..if you don't like .ocx files in your projects and modules are fine with you then email me and I'll send you the module [email protected]
Re: WinSock - Please help
Could you do that?
Thanks.
Re: WinSock - Please help
take 3 winsocks pal
if u want a static one use 3 winsocks with the index property set to nothing
else if u want a dynamic winsock then set index property to all the sockets to 0
here goes
winsock1.listen
***u dont have to specify a port when u make a socket listen as winsock itself generates a arbitary port***
winsock2.connect "ipaddress",remote port of the second application
WINSOCK1_CONNECTION REQUEST()
winsock3.accept requestid
winsock3.getdata strdata,vbstring
this will make a application act as a client and a server..
HINT:: TAKE INSTANT MESSENGER as a example
end sub
Sudharshaan