Re(7): errno 40 (EMSGSIZE, message too long)
Re(7): errno 40 (EMSGSIZE, message too long)
- Subject: Re(7): errno 40 (EMSGSIZE, message too long)
- From: "Peter Lovell" <email@hidden>
- Date: Thu, 30 Jan 2003 10:15:20 -0500
>
On Wednesday, January 29, 2003, at 01:43 PM, Peter Lovell wrote:
>
>
> Hi Ryan,
>
> did you manage to solve the message-too-long problem or is it still
>
> outstanding??
>
>
I'm hoping it was fixed, but am waiting to verify it. The problem
>
turned out that the size of the mbuf wasn't being set. For some reason
>
I thought m_copyback would set the size of the mbuf (and the pkt_size)
>
to the amount of data it copied, but it doesn't. But setting the size
>
fields in the mbuf struct stopped the complaining from sosend.
>
>
Thanks for the help tho.
>
Hi Ryan,
it's probably worth reviewing m_get and m_gethdr to if there are any
additional fields you need to initialize and/or update.
And the sosend code itself to see what it does with packaging data which
comes from user-land. You should try as much as possible to do the same
thing when you pre-package the mbuf yourself.
Cheers.....Peter
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.