Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Synchronization problems



Hi, I'm working on a program that my predecessor started and I'm trying to
work within his structure. That said, I'm having problems with
synchronization using tcp.
The structure of the program has the sends and receives handled outside the
notifier and I think this is where I'm running into problems. Whenever I
send large amounts of data, either the client or the server will freeze up
the computer; occasionally, one of the computers will instead the mouse will
be jumpy. If I run the client and server on the same computer, they work
fine.
My OTRcv calls are set up to read until they get a kOTNoDataErr. I bracketed
my OTRcv function with calls to OTEnterNotifier and OTLeaveNotifier, which I
understand prevents the notifier from being called. As soon as I call
OTLeaveNotifier, my code immediately jumps to the notifier with multiple
T_DATA events, which were already read during the function I just left.

I hope I've been thorough enough for someone to help me with this problem.
Thanks.
--
Shawn Gilliland
Programmer
auto.des.sys




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.