hello! i came to an idea to write my own (simple) port scanner.Everything is fine but i've got some questions:
1)how long it takes nmap to make a full connect() scan (normal home user computer)
2)how should i write a UDP scan function?? should i use connect() function to? or maby sendto() or recvfrom()...what response should i expect from the server??

BTW. I'm using winXP (that's why i'm asking u to chcek nmap-it's not working on this OS correctly)