Homework 0 forum

ERROR: empty protobuf packet

 
Picture of Aaron Joos Lippeveldts
Re: ERROR: empty protobuf packet
by Aaron Joos Lippeveldts - Tuesday, 29 September 2020, 17:54
 

You're sending a bare SimpleMessage, instead of one wrapped in a SimplePacket (see packets.go).

It works if you instead do

nc -u 127.0.0.1 5000

{"simple":{"originPeerName":"sacha","relayPeerAddr":"127.0.0.1:44825","contents":"salut"}}