Re: Problem with Kernel thread and soreceive
Re: Problem with Kernel thread and soreceive
- Subject: Re: Problem with Kernel thread and soreceive
- From: Matt Jaffa <email@hidden>
- Date: Fri, 29 Oct 2004 21:59:26 -0600
Hi,
nvm I figured it out, the:
aiov2[0].iov_base = test2;
aiov2[0].iov_len = 1500;
auio2.uio_iov = aiov2;
auio2.uio_iovcnt = 1;
auio2.uio_rw = UIO_WRITE | UIO_READ;
auio2.uio_segflg = UIO_SYSSPACE;
auio2.uio_offset = 0;
auio2.uio_resid = 1500;
needed to be inside the while loop, with printf statements I was
realizing that it was only allowing my while loop to receive at max
1500 chars, and when i saw the above
code not in the for loop I realized that the 1500 was being decremented
by the size returned from soreceive so putting the above code in the
while loop always initializes it to
1500 each time. Shoulda realized this sooner.
Matt
_______________________________________________
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