Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2014 20:07:19 +0200
From:      Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
To:        ticso@cicely.de
Cc:        freebsd-net@freebsd.org, Bernd Walter <ticso@cicely7.cicely.de>
Subject:   Re: How to create an SCTP association
Message-ID:  <ABDB118B-FCB7-453C-B7FF-CDE7AF303333@lurchi.franken.de>
In-Reply-To: <20140501124908.GA50185@cicely7.cicely.de>
References:  <20140501124908.GA50185@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01 May 2014, at 14:49, Bernd Walter <ticso@cicely7.cicely.de> 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 <bernd@bwct.de> 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"
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ABDB118B-FCB7-453C-B7FF-CDE7AF303333>