netwerk/base/public/nsPISocketTransportService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/base/public/nsPISocketTransportService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,67 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim:set ts=2 sw=2 sts=2 et cindent: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISocketTransportService.idl"
    1.11 +
    1.12 +/**
    1.13 + * This is a private interface used by the internals of the networking library.
    1.14 + * It will never be frozen.  Do not use it in external code.
    1.15 + */
    1.16 +[scriptable, uuid(bc5869e7-53a6-4195-8ab8-32e7116b87dd)]
    1.17 +
    1.18 +interface nsPISocketTransportService : nsISocketTransportService
    1.19 +{
    1.20 +  /**
    1.21 +   * init/shutdown routines.
    1.22 +   */
    1.23 +  void init();
    1.24 +  void shutdown();
    1.25 +
    1.26 +  /**
    1.27 +   * controls whether or not the socket transport service should poke
    1.28 +   * the autodialer on connection failure.
    1.29 +   */
    1.30 +  attribute boolean autodialEnabled;
    1.31 +
    1.32 +  /**
    1.33 +   * controls the TCP sender window clamp
    1.34 +   */
    1.35 +  readonly attribute long sendBufferSize;
    1.36 +
    1.37 +  /**
    1.38 +   * Controls whether the socket transport service is offline.
    1.39 +   * Setting it offline will cause non-local socket detachment.
    1.40 +   */
    1.41 +  attribute boolean offline;
    1.42 +
    1.43 +  /**
    1.44 +   * Controls the default timeout (in seconds) for sending keepalive probes.
    1.45 +   */
    1.46 +  readonly attribute long keepaliveIdleTime;
    1.47 +
    1.48 +  /**
    1.49 +   * Controls the default interval (in seconds) between retrying keepalive probes.
    1.50 +   */
    1.51 +  readonly attribute long keepaliveRetryInterval;
    1.52 +
    1.53 +  /**
    1.54 +   * Controls the default retransmission count for keepalive probes.
    1.55 +   */
    1.56 +  readonly attribute long keepaliveProbeCount;
    1.57 +};
    1.58 +
    1.59 +%{C++
    1.60 +/*
    1.61 + * Network activity indicator: we send out these topics no more than every
    1.62 + * blipIntervalMilliseconds (as set by the
    1.63 + * "network.activity.blipIntervalMilliseconds" preference: if 0 no notifications
    1.64 + * are sent) if the network is currently active (i.e. we're sending/receiving
    1.65 + * data to/from the socket).
    1.66 + */
    1.67 +#define NS_NETWORK_ACTIVITY_BLIP_UPLOAD_TOPIC   "network-activity-blip-upload"
    1.68 +#define NS_NETWORK_ACTIVITY_BLIP_DOWNLOAD_TOPIC "network-activity-blip-download"
    1.69 +
    1.70 +%}

mercurial