michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISocketTransportService.idl" michael@0: michael@0: /** michael@0: * This is a private interface used by the internals of the networking library. michael@0: * It will never be frozen. Do not use it in external code. michael@0: */ michael@0: [scriptable, uuid(bc5869e7-53a6-4195-8ab8-32e7116b87dd)] michael@0: michael@0: interface nsPISocketTransportService : nsISocketTransportService michael@0: { michael@0: /** michael@0: * init/shutdown routines. michael@0: */ michael@0: void init(); michael@0: void shutdown(); michael@0: michael@0: /** michael@0: * controls whether or not the socket transport service should poke michael@0: * the autodialer on connection failure. michael@0: */ michael@0: attribute boolean autodialEnabled; michael@0: michael@0: /** michael@0: * controls the TCP sender window clamp michael@0: */ michael@0: readonly attribute long sendBufferSize; michael@0: michael@0: /** michael@0: * Controls whether the socket transport service is offline. michael@0: * Setting it offline will cause non-local socket detachment. michael@0: */ michael@0: attribute boolean offline; michael@0: michael@0: /** michael@0: * Controls the default timeout (in seconds) for sending keepalive probes. michael@0: */ michael@0: readonly attribute long keepaliveIdleTime; michael@0: michael@0: /** michael@0: * Controls the default interval (in seconds) between retrying keepalive probes. michael@0: */ michael@0: readonly attribute long keepaliveRetryInterval; michael@0: michael@0: /** michael@0: * Controls the default retransmission count for keepalive probes. michael@0: */ michael@0: readonly attribute long keepaliveProbeCount; michael@0: }; michael@0: michael@0: %{C++ michael@0: /* michael@0: * Network activity indicator: we send out these topics no more than every michael@0: * blipIntervalMilliseconds (as set by the michael@0: * "network.activity.blipIntervalMilliseconds" preference: if 0 no notifications michael@0: * are sent) if the network is currently active (i.e. we're sending/receiving michael@0: * data to/from the socket). michael@0: */ michael@0: #define NS_NETWORK_ACTIVITY_BLIP_UPLOAD_TOPIC "network-activity-blip-upload" michael@0: #define NS_NETWORK_ACTIVITY_BLIP_DOWNLOAD_TOPIC "network-activity-blip-download" michael@0: michael@0: %}