Source code

Revision control

Other Tools

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/. */
6
7
#include "nsISocketTransportService.idl"
8
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.
12
*/
13
[builtinclass, scriptable, uuid(18f73bf1-b35b-4b7b-aa9a-11bcbdbc389c)]
14
interface nsPISocketTransportService : nsIRoutedSocketTransportService
15
{
16
/**
17
* init/shutdown routines.
18
*/
19
void init();
20
void shutdown(in bool aXpcomShutdown);
21
22
/**
23
* controls the TCP sender window clamp
24
*/
25
readonly attribute long sendBufferSize;
26
27
/**
28
* Controls whether the socket transport service is offline.
29
* Setting it offline will cause non-local socket detachment.
30
*/
31
attribute boolean offline;
32
33
/**
34
* Controls the default timeout (in seconds) for sending keepalive probes.
35
*/
36
readonly attribute long keepaliveIdleTime;
37
38
/**
39
* Controls the default interval (in seconds) between retrying keepalive probes.
40
*/
41
readonly attribute long keepaliveRetryInterval;
42
43
/**
44
* Controls the default retransmission count for keepalive probes.
45
*/
46
readonly attribute long keepaliveProbeCount;
47
};
48
49
%{C++
50
/*
51
* I/O activity observer topic. Sends out information about the
52
* amount of data we're sending/receiving via sockets and disk files.
53
*
54
* Activated via the "io.activity.enabled" preference.
55
*/
56
#define NS_IO_ACTIVITY "io-activity"
57
58
59
%}