def process_nodes(g, f, structname, defaultport):
    g.write(('static SeedSpec6 %s[] = {\n' % structname))
    first = True
    for line in f:
        comment = line.find('#')
        if (comment != (- 1)):
            line = line[0:comment]
        line = line.strip()
        if (not line):
            continue
        if (not first):
            g.write(',\n')
        first = False
        (host, port) = parse_spec(line, defaultport)
        hoststr = ','.join((('0x%02x' % b) for b in host))
        g.write(('    {{%s}, %i}' % (hoststr, port)))
    g.write('\n};\n')
def process_nodes(g, f, structname, defaultport):
    g.write(('static SeedSpec6 %s[] = {\n' % structname))
    first = True
    for line in f:
        comment = line.find('#')
        if (comment != (- 1)):
            line = line[0:comment]
        line = line.strip()
        if (not line):
            continue
        if (not first):
            g.write(',\n')
        first = False
        (host, port) = parse_spec(line, defaultport)
        hoststr = ','.join((('0x%02x' % b) for b in host))
        g.write(('    {{%s}, %i}' % (hoststr, port)))
    g.write('\n};\n')