winsock has it's on event when it's connected

private sub windock_connected()
msgbox "connected......."
end sub