@inosms you can. You need to generate two long term keys (tox addresses) and add them to friends like in echo.rs on each side.
Then you can send custom lossless packets.
The first byte should be 160-191 for custom packets.
But it's still very experimental and the api likely will be changed.
Yes that sounds very good - I tried this, but the two nodes do not connect (probably a problem with the internet here though), I can however connect with a normal tox client - I think I am missing some sort of initial handshake?
net_crypto should initiate a handshake if you didn't forget to run its future. But I haven't tried it myself so probably there is a bug that breaks communication with two tox-rs. I'll look closer a bit later.
so it finds the DHT key [2019-06-28T05:16:14Z INFO tox::toxcore::friend_connection] Found a friend's DHT key and then it won't go any further
the net_crypto future gets processed
Also cookie requests get send but they never arrive, will investigate a bit more
suhr @suhr is thinking about some TLA+ spec for tox