Make open-socket accept more optional arguments.