Re: Send TCP/IP Keepalive Packets
Re: Send TCP/IP Keepalive Packets
- Subject: Re: Send TCP/IP Keepalive Packets
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Tue, 1 Mar 2011 16:09:49 +0000
On 1 Mar 2011, at 15:27, [ChungwaSoft] Fabian Jäger wrote:
> what would be the simplest way to send TCP/IP keepalive packets to a given remote host on a regular basis?
Keep alive packets are not sent to a host per se, but apply to a specific connection. If you have access to the socket for that connection, you can call setsockopt with the SO_KEEPALIVE option to enable keep alive transmission. See <x-man-page://2/getsockopt> for the details.
If you don't have access to the socket, you'll need to provide us with some more details.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden