Re: Asynchronous sock_sendmbuf
Re: Asynchronous sock_sendmbuf
- Subject: Re: Asynchronous sock_sendmbuf
- From: "Igor Mikushkin" <email@hidden>
- Date: Thu, 22 May 2008 11:38:30 +0500
2008/5/21 Eddy Quicksall <email@hidden>:
> I just noticed you are looking at sock_sendmbuf, I'm using so->so_send
> (sosend).
It looks like NKE guide forces you to use sock_sendmbuf (at least
sock_send) from kpi_socket.h.
I think sock_sendmbuf is more preferable because it uses mbuf directly.
It takes an ownership of an mbuf, so you should not free it and you
don't need to keep your data buffer alive until operation completes.
Although probably sock_send returns only when your data is copied to
mbuf implicitly. I'm not sure about this.
Igor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden