> On Nov 2, 2018, at 5:00 PM, Jens Alfke <j...@mooseyard.com> wrote:
> 
>> On Nov 2, 2018, at 4:56 PM, Carl Hoefs <newsli...@autonomy.caltech.edu 
>> <mailto:newsli...@autonomy.caltech.edu>> wrote:
>> 
>> How does one do that with Network.fw <http://network.fw/>? It listens on the 
>> given port, but the incoming connection exclusively uses that port. Other 
>> connections can't proceed until the first one disconnects.
> 
> I haven’t seen the Swift API, but in the C API the nw_listener has a 
> new-connection handler block, which is called when a connection is accepted; 
> then that connection runs independently. The listener should call that 
> handler every time an incoming connection is made…

So... the connection handler block makes each new connection in a new thread on 
the designated dispatch queue? If so, then that should work. It's just a bit 
unclear.

-Carl

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to