Example code to connect to multi-homed servers over TCP:

select-connect.c poll-connect.c thread-connect.c