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

Re: Lifetime of struct sockaddr *to


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


Thank you for your reply.
If I call sock_connect with the MSG_DONTWAIT flag, how can I know the system has established the connection and that I can dispose of the to structure ?
I tried calling sock_connect with MSG_DONTWAIT, releasing the to structure, and I ended up with a kernel panic. If I don't dealloc the structure, everything is fine.

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
References: 
 >Lifetime of struct sockaddr *to (From: Jean Suisse <email@hidden>)
 >Re: Lifetime of struct sockaddr *to (From: Josh Graessley <email@hidden>)

  • Prev by Date: Re: Lifetime of struct sockaddr *to
  • Next by Date: Unexpected (?) behavior in socket filter (sf_connect_out)
  • Previous by thread: Re: Lifetime of struct sockaddr *to
  • Next by thread: Unexpected (?) behavior in socket filter (sf_connect_out)
  • Index(es):
    • Date
    • Thread