Lifetime of struct sockaddr *to
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