| Age | Commit message (Collapse) | Author |
|
|
|
This is done as cleanly as possible to track down any memory leaks.
unfortunately there is still one async operation running on the nodes.
when there should be none. So the nodes are still forced to stop with a.
io_service.stop().
|
|
|
|
Also adapts the API to both handle sodium and gcrypt libraries.
|
|
other.
|
|
|
|
Mainly covers the network rewrites.
|
|
This time without the ugly SFINAE hack to restrict sending and receiving
on Senders and Receivers respectively. Replaced this hack with private
inheritance and using declerations.
Also renamed receive to async_receive to better reflect the behaviour.
|
|
When all the nodes have send a bye to the client, the client will
shut down.
|
|
One generic class has been introduced to handle all connection types.
Typedefs provide Sender Receiver and SenderReceiver types, which limit
the functionality of the types. As to not accidentally communicate with
the wrong node about things.
|
|
Created a PrevNode class to reflect the seperation.
Made Client movable.
Added 2 empty protobuf message that declare what each connecting client
is, sent when connected to a node.
|
|
|
|
|
|
Added the behaviour for receiving a public_share message from our
previous node when not being the first node ourselves. This
triggered the whitespace bug below, which sparked the network
rewrite.
Rewrote network protocol to first send the size of the message it's
sending in a 32bit integer in network byte order.
Fixed a bug where whitespace in the received buffer would be skipped.
leading to broken protobuf messages.
NextNode no longers inherits from client but owns one, and some
functions needed to be forwarded.
|
|
|
|
|
|
|