Well, nobody seemed to be able to help me create a port scanner that uses api only, so now i'm using the WinSock ocx.

How can I change the timeout value for how long it waits to connect?