• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there a way to "bridge" TCP/IP sockets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Is there a way to "bridge" TCP/IP sockets?
      • From: Jonathon Kuo <email@hidden>
References: 
 >Is there a way to "bridge" TCP/IP sockets? (From: Jonathon Kuo <email@hidden>)

  • Prev by Date: Is there a way to "bridge" TCP/IP sockets?
  • Next by Date: Re: Is there a way to "bridge" TCP/IP sockets?
  • Previous by thread: Is there a way to "bridge" TCP/IP sockets?
  • Next by thread: Re: Is there a way to "bridge" TCP/IP sockets?
  • Index(es):
    • Date
    • Thread