Fixed server socket options, added missing length prefix