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.

Recommended Answers

All 4 Replies

2. Protocol
3. Used a method to close a particular file descriptor ID.

uh, what?

Here's a link to the only place on the web you'll need ;)

ive looked at that

doesnt really help me with my questions...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.