Skip to content
Snippets Groups Projects
  • Vladislav Shpilevoy's avatar
    b1c77743
    swim: extract binary ip/port into a separate struct · b1c77743
    Vladislav Shpilevoy authored
    At this moment there are two binary structures in the SWIM
    protocol carrying an address: swim_member_passport and
    swim_meta_header_bin - one address in each. This code duplication
    was not formidable enough to stimulate creation of a separate
    address structure.
    
    But forthcoming indirect messages protocol extensions will add 2
    new cases of encoding a binary address. It triggered this patch
    to reduce code duplication.
    
    Part of #3234
    b1c77743
    History
    swim: extract binary ip/port into a separate struct
    Vladislav Shpilevoy authored
    At this moment there are two binary structures in the SWIM
    protocol carrying an address: swim_member_passport and
    swim_meta_header_bin - one address in each. This code duplication
    was not formidable enough to stimulate creation of a separate
    address structure.
    
    But forthcoming indirect messages protocol extensions will add 2
    new cases of encoding a binary address. It triggered this patch
    to reduce code duplication.
    
    Part of #3234