Link to home
Start Free TrialLog in
Avatar of Daij-Djan
Daij-Djan

asked on

WSAAddressToString

I have a string and an int
string = address (IP or name)
int = port

I need to convert it so it can be used by various winsock functions.

Question is: How
ASKER CERTIFIED SOLUTION
Avatar of _nn_
_nn_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Daij-Djan
Daij-Djan

ASKER

Okidoki. msdn samples use that too.
Thanks. :)

Well, if you checked MSDN, you've certainly found about WSAStringToAddress()
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/wsastringtoaddress_2.asp

I like the "old" way though.
I did ;) but after I asked here - In the end I took your code so you earned the points