• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Control socket communication gets truncated...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Control socket communication gets truncated...


  • Subject: Control socket communication gets truncated...
  • From: Thorsten Kramp <email@hidden>
  • Date: Thu, 05 Jun 2008 07:58:16 +0200

Hello all,

I'm developing a TCP filter NKE for 10.5, with a user-level process communicating with the NKE via a control socket in stream mode. The user-level process waits for data from the NKE by calling select and read/write, respectively.

However, sometimes when the user-level process writes to the control socket some data, not all the data seems to be passed to the NKE (even though the return value of write indicates that all bytes have been passed to the socket). More precisely, for some reason the NKE only gets the first 204 bytes in the m parameter of the NKE's ctl_send_func. Interestingly, it's always precisely 204 bytes even though the user-level process sometimes writes 217 bytes, 218 bytes, 300 bytes...

Does anybody has ever seen this behaviour? All suggestions are very welcome! Thanks in advance.

Best, Thorsten

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Control socket communication gets truncated...
      • From: Josh Graessley <email@hidden>
  • Prev by Date: Re: Problems with linker (ld)
  • Next by Date: Re: Compiling msdosfs...
  • Previous by thread: RE: Kext dependent on another kext
  • Next by thread: Re: Control socket communication gets truncated...
  • Index(es):
    • Date
    • Thread