i made a program using winsock to send and receive mail from my mailserver.. Automaticly i will get the connection with internet... How i do turn off this connection when i finish reading/sending my mail

you're help will be welcome!!
thanks Ton