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 hub info #30

Closed aler9 closed 1 year ago

aler9 commented 5 years ago

This patch implements decoding of HubInfo. HubInfo is normally sent with a IINF; at the moment it cannot be decoded, since INF is associated with UserInfo (sent with BINF). Since IINF is used exclusively with HubInfo, a solution could consist in switching to HubInfo in this single case, leaving the default behavior in any other case.