Re: Network.framework and client/server?
Re: Network.framework and client/server?
- Subject: Re: Network.framework and client/server?
- From: Carl Hoefs <email@hidden>
- Date: Fri, 02 Nov 2018 17:06:52 -0700
> On Nov 2, 2018, at 5:00 PM, Jens Alfke <email@hidden> wrote:
>
>> On Nov 2, 2018, at 4:56 PM, Carl Hoefs <email@hidden
>> <mailto:email@hidden>> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden