• 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
Lifetime of struct sockaddr *to
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lifetime of struct sockaddr *to


  • Subject: Lifetime of struct sockaddr *to
  • From: Jean Suisse <email@hidden>
  • Date: Sat, 22 Sep 2012 11:50:38 +0200

Hello,

When calling 
errno_t sock_connect(socket_t so, const struct sockaddr *to, int flags)
from a kernel extension, how long should I keep the 
struct sockaddr *to 
before deallocating it ?
I guess, I could keep it around until the connection closes, to be safe. But is there such requirement ?

In an other context, when a socket filter receives a pointer to such structure during a call to sf_connect_out or sf_connect_in, should it store the pointer or a copy of the structure ?

Cheers,
Jean
 _______________________________________________
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

  • Follow-Ups:
    • Re: Lifetime of struct sockaddr *to
      • From: Josh Graessley <email@hidden>
  • Prev by Date: Re: Broadcast Protocols
  • Next by Date: Re: Lifetime of struct sockaddr *to
  • Previous by thread: default IPv6 route issue when using System Configuration framework
  • Next by thread: Re: Lifetime of struct sockaddr *to
  • Index(es):
    • Date
    • Thread