Re: Is there a way to "bridge" TCP/IP sockets?
Re: Is there a way to "bridge" TCP/IP sockets?
- Subject: Re: Is there a way to "bridge" TCP/IP sockets?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Tue, 23 Nov 2010 12:38:02 +0000
On 23 Nov 2010, at 00:16, Jonathon Kuo wrote:
> I have a main process waiting for connections on a known port. Client A connects on new socket 10, and client B connects on new socket 11. If client A wants to interact with client B, is there a way to "bridge" the sockets together so the main process doesn't have to juggle the reads and writes between the two clients?
There's no direct way to do this. You'd have to write code (either async, threaded, or using libdispatch) to route the data between the sockets [1].
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
[1] I thought <x-man-page://2/sendfile> might be able to help you out, but the source file must be a regular file, and thus can't be a socket.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden