strtoport
a = strtoport(av, &s, 0, proto);
b = strtoport(av, &s, 0, proto);
i = strtoport(s, &end, 0 /* base */, 0 /* proto */);