• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Send TCP/IP Keepalive Packets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Send TCP/IP Keepalive Packets (From: "[ChungwaSoft] Fabian Jäger" <email@hidden>)

  • Prev by Date: Send TCP/IP Keepalive Packets
  • Next by Date: Re: Time out a connect() call
  • Previous by thread: Send TCP/IP Keepalive Packets
  • Next by thread: Network latency, TCP, Bluetooth
  • Index(es):
    • Date
    • Thread