Hey
Im writing a program that needs to send data over http, sometimes 45 minutes between packets, sometimes 10 seconds. I noticed that when i shut the server down it sends a lot of fin packets... so i guess my socket logic is off... i dont have a lot of experience with sockets
1. should i create a new socket every time i want to send a packet?
2. what options should i set (setsockopt)
3. how do i shutdown the socket properly?
this program is for windows only.