Pass resolved (address, port) to opensocket callback.

Update to #18.