Add registration response message to the communication

This commit is contained in:
Zoltán Papp
2024-05-21 15:51:37 +02:00
parent 1c9c9ae47e
commit 13eb457132
4 changed files with 115 additions and 10 deletions

View File

@ -145,5 +145,8 @@ func handShake(conn net.Conn) (*Peer, error) {
return nil, err
}
p := NewPeer(peerId, conn)
return p, nil
msg := messages.MarshalHelloResponse()
_, err = conn.Write(msg)
return p, err
}