#Library for encoding and decoding custom protocols

5 messages · Page 1 of 1 (latest)

pulsar relic
#

Hello, I want to interact with a TCP server with custom protocol, is there any library that help me define custom encoders and decoders for custom types or native types?

Maybe something like this?

struct Data {
id String type:"customType"
}

func (d *Data) customType() String {
return "decoded_id"
}

lib.Decode([...bytes], Data)

tepid jasper
#

Like protobuf? Or?

pulsar relic
#

or anything that I provide

paper edge
#

If they're using a truly custom protocol I think your best bet might be just raw sockets and bytes.