Set socket options: fixed links, removed deleted/deprecated options, added new options (needs testing!)