data lost in AF_INET sockets?
data lost in AF_INET sockets?
- Subject: data lost in AF_INET sockets?
- From: Michael Swan <email@hidden>
- Date: Mon, 25 Mar 2002 12:41:41 -0800
Hi,
I have a UNIX application sending a lot of data to an OS X
Carbon-CFM application (i.e. running natively on OS X) via
a UDP socket. Unfortunately, a lot of data seems to be dropped
between the UNIX app and the OS X app. Neither side reports
errors: UNIX app sendto() and OS X app OTRcvUData return without
error. Some part of the socket mechanism is dropping the data
but it isn't clear where. When we're really pushing data through
the socket, we end up losing more that 85% of the data!
I understand from previous threads on this list converting to
native sockets on the OS X side wouldn't help with performance.
Is this really the case?
Might it help performance if I switched from using AF_INET sockets
to AF_UNIX sockets? AF_UNIX sockets would seem to me to be more efficient
since there is less protocol overhead (although that might be
replaced by UNIX filesystem overhead?)
Any other ideas to improve the IPC throughput? If there is another
mechanism that should be used, please let me know. Pipes would be
a natural but I'm not quite sure how that would work in the OS X
app...
Michael Swan
Neon Software, Inc.
_______________________________________________
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.