{packet, PacketType} for little-signed packets

Pablo Platt pablo.platt@REDACTED
Sat Jun 5 17:39:03 CEST 2010


Hi

Is there a way I can handle {packet, PacketType} for little-endian where
Packet = <<Length:32/little-signed,Message/binary>>
Length=4+byte_size(Message)

I currently handle it manually but it'll be nice if gen_tcp could handle it for me the way {packet, PacketType}
works for big-endian byte order.

Thanks



      


More information about the erlang-questions mailing list