Recommended API for two-way transfers
Recommended API for two-way transfers
- Subject: Recommended API for two-way transfers
- From: Chris Silverberg <email@hidden>
- Date: Mon, 04 Feb 2002 10:33:54 -0800
- Organization: Aladdin Systems, Inc.
I'd like to get anyone's opinion on the following...
I have an application that establishes up to four TCP connections with
remote clients. On each connection a continuous amount of data is
transferring in BOTH directions as fast as possible. Think of it as file
transfers going in both directions.
Currently this is achieved using async OT w/ cooperative threading. This
works, but it makes the application extremely sluggish and consumes way too
much CPU. (And it's probably getting poor performance since it spends so
much time switching cooperative threads).
So, I'm trying to figure out what my options are. OTMP is definitely a
possibility since it gives me backwards compatibility with MacOS 9. But I'm
open to going MacOS X only. So bsd sockets, CFSocket, or anything else are
on the table.
The key to figuring out which model works best, is the fact that I need to
transmit and receive data simultaneously. This is not request/response type
of protocol.
Any advice is greatly appreciated.
thanks,
Chris