From owner-freebsd-net@FreeBSD.ORG Thu May 1 18:07:25 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C2A725D1 for ; Thu, 1 May 2014 18:07:25 +0000 (UTC) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail-n.franken.de", Issuer "Thawte DV SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8433E1989 for ; Thu, 1 May 2014 18:07:25 +0000 (UTC) Received: from [192.168.1.102] (p54819FCD.dip0.t-ipconnect.de [84.129.159.205]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 465F21C104626; Thu, 1 May 2014 20:07:21 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: How to create an SCTP association From: Michael Tuexen In-Reply-To: <20140501124908.GA50185@cicely7.cicely.de> Date: Thu, 1 May 2014 20:07:19 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <20140501124908.GA50185@cicely7.cicely.de> To: ticso@cicely.de X-Mailer: Apple Mail (2.1874) Cc: freebsd-net@freebsd.org, Bernd Walter X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2014 18:07:25 -0000 On 01 May 2014, at 14:49, Bernd Walter wrote: > I have an SOCK_SEQPACKET socket and want to setup an association > without sending a message. Just call connect() or sctp_connectx(). > > The background is that I want to keep the round-trip times of peer > servers. > I've enabled regular heartbeat and can use SCTP_GET_PEER_ADDR_INFO > to get the RTT. > But in case a host is down or services are restarted I don't have > an association to ask, so I will need some way to (re)establish > associations. > This is done in a different thread as the normal socket operation, > which uses EOR to write. > If I send a (dummy)message to the socket I would have to add a mutex > to not disturb the sending thread. Does the above solve your issue? Best regards Michael > > -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >