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: Satish Kilaru <email@hidden>
- Date: Tue, 23 Nov 2010 13:36:52 -0500
- Acceptlanguage: en-US
- Thread-topic: Is there a way to "bridge" TCP/IP sockets?
1) Try doing that bucket-bridging in kernel.
2) Why can't client A connect to Client B directly. That is highly scalable. :-)
-----Original Message-----
From: macnetworkprog-bounces+skilaru=email@hidden [mailto:macnetworkprog-bounces+skilaru=email@hidden] On Behalf Of Jonathon Kuo
Sent: Tuesday, November 23, 2010 1:30 PM
To: Quinn The Eskimo!
Cc: Mac Network Programming
Subject: Re: Is there a way to "bridge" TCP/IP sockets?
On Nov 23, 2010, at 4:38 AM, Quinn The Eskimo! wrote:
>
> 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].
Interesting, so my main process must act as a 'bucket brigade' go-between, reading from client A and writing to client B, etc. Does this paradigm scale? How many sockets/connections can the main process support before it runs into some sort of resource limit?
_______________________________________________
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
******************Legal Disclaimer***************************
"This communication may contain confidential and privileged material
for the sole use of the intended recipient. Any unauthorized review,
use or distribution by others is strictly prohibited. If you have
received the message in error, please advise the sender by reply
email and delete the message. Thank you."
****************************************************************
_______________________________________________
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