pebbe / zmq4

A Go interface to ZeroMQ version 4
BSD 2-Clause "Simplified" License
1.17k stars 163 forks source link

invalid data `^@` in zmq msg #122

Closed akzi closed 6 years ago

akzi commented 6 years ago

when I use zmq4 to sub a pub service(c++ zmq pub service),

msg, err := socket.Recv(0) if err != nil { log.Errorf(err.Error()) continue } file.WriteString(msg)

and all the msg end with ^@ ^@ in vim \x00 in python terminal

akzi commented 6 years ago

it is a \0 in C /C++ language.