05-21-2005, 09:22 AM
"wsadata" must to be the struct, not the pointer to it. Pass it by doing @wsadata, after declaring it as "wsadata as WSAData", see examples/Windows/winsocktest.bas for more details - resolving the host to an IP can be really trick with Winsock.
ew FreeBASIC forums: http://www.freebasic.net/forum/index.php