<div dir="ltr"><div>Hello,</div><div><br></div><div>If all you want is a library for network communication that implements NAT pass-through, you might want to look into Raknet library or find similar libraries.</div><div><a href="http://www.jenkinssoftware.com/raknet/manual/nattraversalarchitecture.html">http://www.jenkinssoftware.com/raknet/manual/nattraversalarchitecture.html</a><br></div><div><a href="http://www.jenkinssoftware.com/raknet/manual/natpunchthrough.html">http://www.jenkinssoftware.com/raknet/manual/natpunchthrough.html</a><br></div><div><br></div><div>You could use Tox in your application, but it might be an overkill for what you need. All Tox clients use Toxcore library for networking and encryption. Toxcore encrypts all the communication and it doesn't allow you to specify an IP address of the person you want to connect to, you have to use ToxID instead of IP. Toxcore uses DHT to perform the lookup of the IP:port of the person you want to connect to based on the ToxID, and it keeps the IP:port information internally, it's not exposed in the public API of Toxcore. Because Tox participates in DHT, interacting with other DHT peers, it uses some extra bandwidth, which might not be desirable for your use. It can easily use a few hundred of MiBs of bandwidth in an hour. If this is fine by you, then you might be interested in looking at <a href="https://github.com/TokTok/c-toxcore/blob/master/toxcore/tox.h" target="_blank">https://github.com/TokTok/<wbr>c-toxcore/blob/master/toxcore/<wbr>tox.h</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 10, 2016 at 3:20 PM, Nocs ... <span dir="ltr"><<a href="mailto:NoCos30@hotmail.com" target="_blank">NoCos30@hotmail.com</a>></span> wrote:<br><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 id="gmail-m_-1175214169359105814m_8721706675338834162divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif" dir="ltr">
<p>Hello to all,</p>
<p><br>
</p>
<p>First of all thanks and congruts for the great chat and finally p2p with no servers needed :)
<br>
</p>
<p>I was stumble upon NAT and connections between two ips for a very long time until someone eventually pointed me at this very good application.<br>
Exactly what i was looking for.</p>
<p><br>
</p>
<p>To short things out for what i would like as an advice is that i am newbie c++ developer and i would like to use</p>
<p>only the connections of tox chat not the interfave cause i allready have my own but i found hard to understand which of all the clients or which
<br>
</p>
<p>open source git to search for.</p>
<p>I would like to use the tox only for windows for the time being not posix or at least only windows, macintosh and linux</p>
<p>so i want to find where to start from, which git should i download of them all and a small way to find only the connections from inside this wonderfull chat. (create socket, bind socket, listen socket, send and recieve message with the ips others or ids)</p>
<p>I dont want the interface neither any fancy stuff, i just want to be able to find the code that connects 2 pc`s or more through internet so i can attach it to my own interface.</p>
<p><br>
</p>
<p>Thank you in advance<br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
Support mailing list<br>
Support@lists.tox.chat<br>
<a href="https://lists.tox.chat/listinfo/support" rel="noreferrer" target="_blank">https://lists.tox.chat/listinf<wbr>o/support</a><br>
<br></blockquote></div><br></div></div>