Re: Problem with Kernel thread and soreceive
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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; Matt _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Matt Jaffa