Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / netwerk / base / nsPISocketTransportService.idl
blob8ea8d7ba55a6b78d560416c0f10323bd26470135
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISocketTransportService.idl"
9 /**
10 * This is a private interface used by the internals of the networking library.
11 * It will never be frozen. Do not use it in external code.
13 [builtinclass, scriptable, uuid(18f73bf1-b35b-4b7b-aa9a-11bcbdbc389c)]
14 interface nsPISocketTransportService : nsIRoutedSocketTransportService
16 /**
17 * init/shutdown routines.
19 void init();
20 void shutdown(in boolean aXpcomShutdown);
22 /**
23 * controls the TCP sender window clamp
25 readonly attribute long sendBufferSize;
27 /**
28 * Controls whether the socket transport service is offline.
29 * Setting it offline will cause non-local socket detachment.
31 attribute boolean offline;
33 /**
34 * Controls the default timeout (in seconds) for sending keepalive probes.
36 readonly attribute long keepaliveIdleTime;
38 /**
39 * Controls the default interval (in seconds) between retrying keepalive probes.
41 readonly attribute long keepaliveRetryInterval;
43 /**
44 * Controls the default retransmission count for keepalive probes.
46 readonly attribute long keepaliveProbeCount;
49 %{C++
51 * I/O activity observer topic. Sends out information about the
52 * amount of data we're sending/receiving via sockets and disk files.
54 * Activated via the "io.activity.enabled" preference.
56 #define NS_IO_ACTIVITY "io-activity"