direct-connect / go-dc

Direct Connect library for Go (NMDC and ADC protocols)
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

adc: support file compression #29

Closed aler9 closed 5 years ago

aler9 commented 5 years ago

This patch adds supporto for the "ZL1" prefix at the end of a GET or a SND message.

aler9 commented 5 years ago

I reviewed the implementation and i noticed there was an entire part missing. Furthermore, GET is the only command with an optional flag, so it cannot be decoded with the actual marshaler. Therefore i implemented a custom marshaler (and added tests too).