This commit is contained in:
jdl
2024-12-12 21:11:17 +01:00
parent 03ff1aac80
commit fdf0066fc2
35 changed files with 1138 additions and 331 deletions

View File

@@ -6,7 +6,7 @@ type PeerConfig struct {
HubAddress string
Network []byte
APIKey string
IP []byte
PublicIP []byte
Port uint16
Mediator bool
EncPubKey []byte
@@ -17,8 +17,9 @@ type PeerConfig struct {
type Peer struct {
PeerIP byte
Version int64
Name string
IP []byte
PublicIP []byte
Port uint16
Mediator bool
EncPubKey []byte
@@ -29,10 +30,10 @@ type NetworkState struct {
HubAddress string
// The requester's data:
Network []byte
PeerIP byte
IP []byte
Port uint16
Network []byte
PeerIP byte
PublicIP []byte
Port uint16
// All peer data.
Peers [256]*Peer