<div dir="ltr"><div dir="ltr">On Wed, Oct 2, 2019 at 11:49 AM Brian Wood <<a href="mailto:woodbrian77@gmail.com">woodbrian77@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">   Shalom<div><br></div><div>I've been thinking of converting my TCP-based code </div><div>generator to SCTP.  Finding info on SCTP is not as</div><div>easy though as TCP.  </div></div></blockquote><div><br></div><div>I've made some progress with this, mainly in the 'login' function:</div><div><a href="https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/tiers/cmwA.cc">https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/tiers/cmwA.cc</a>  <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Have you used SCTP?  On</div><div>openSUSE, I can compile this:</div><div><br></div><div>int sd=::socket(PF_INET,SOCK_STREAM,IPPROTO_SCTP);</div><div><br></div><div>with just this file:</div><div><a href="https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/Buffer.hh" target="_blank">https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/Buffer.hh</a>  <br></div><div><br></div><div>but on FreeBSD, I have to also</div><div>#include<netinet/sctp.h></div><div><br></div><div>.  Are there other Posix systems where you have to include</div><div>that file?  </div><div><br></div><div>I read that "SCTP frequently sends heartbeat messages to </div><div>test the state of connection."  I'm not sure I want it to do that </div><div>frequently.  Is that configurable?  Thank you in advance.</div><div><br></div></div></blockquote><div> </div><div>On my openSUSE and FreeBSD systems, the heartbeat interval</div><div>is set to 30 seconds.  That's more often than I need it.  Is there</div><div>a way to change that from within the program I linked to?</div><div><br></div><div><br></div><div>Brian</div><div>Ebenezer Enterprises - In G-d we trust.</div><div><a href="http://webEbenezer.net" target="_blank">http://webEbenezer.net</a></div></div></div>