| Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also switched from an inheritance system to composition based system for
the server based classes.
|
|
|
|
|
|
Added UserClient and NodeClient classes to handle communication from and
to Clients and Nodes respectively.
|
|
|
|
|
|
|
|
|
|
|
|
The acceptor combines the endpoint and acceptor to reduce clutter in
NetworkHandler class.
The client will handle the connection for the network handler for every
separate client.
The networkhander now has a std::list of Client, to keep track and
ownership of all the Clients.
|
|
|