do setsockopt on sockets at creation time.