From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 21 Mar 2016 10:38:55 +0100 From: Hans-Werner Hilse In-Reply-To: <2352013.EmfB5eiPMC@bentobox> References: <1458551033-8734-1-git-send-email-hwhilse@gmail.com> <1458551033-8734-2-git-send-email-hwhilse@gmail.com> <2352013.EmfB5eiPMC@bentobox> Message-ID: Subject: Re: [B.A.T.M.A.N.] [RFC] alfred: implement TCP support for server-to-server communication List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking Hi, Am 2016-03-21 10:13, schrieb Sven Eckelmann: >> +int connect_tcp(struct interface *interface, const struct in6_addr >> *dest) >> +{ >> [...] >> +} >> + > > Wouldn't this hang for a while and make the alfred server > "unresponsive" > when the remote is not reachable at this moment?. Yes, it most definitely would, you're right. If the route I'm following is generally right, I think I'll work on this part (*that* I can make into a different commit). The connect() can be made non-blocking, and I would add the socket and the request to send to a list (possibly using the transaction list that already exists right now). -hwh