Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsDownloader.cpp File Reference
#include "nsDownloader.h"
#include "nsICachingChannel.h"
#include "nsIInputStream.h"
#include "nsDirectoryServiceUtils.h"
#include "nsDirectoryServiceDefs.h"
#include "nsNetUtil.h"
#include <stdlib.h>

Go to the source code of this file.


struct  seederHack


#define TABLE_SIZE   36


static void MakeRandomString (char *buf, PRInt32 bufLen)
 NS_IMPL_ISUPPORTS3 (nsDownloader, nsIDownloader, nsIStreamListener, nsIRequestObserver) NS_IMETHODIMP nsDownloader


static const char table []
static seederHack hackhackhack

Define Documentation

#define TABLE_SIZE   36

Definition at line 49 of file nsDownloader.cpp.

Function Documentation

static void MakeRandomString ( char *  buf,
PRInt32  bufLen 
) [static]

Definition at line 56 of file nsDownloader.cpp.

    PRInt32 i;
    for (i=0;i<bufLen;i++) {
        *buf++ = table[rand()%TABLE_SIZE];
    *buf = 0;

Definition at line 92 of file nsDownloader.cpp.

    mObserver = observer;
    mLocation = location;
    return NS_OK;

Variable Documentation

Definition at line 74 of file nsDownloader.cpp.

const char table[] [static]
Initial value:
    { 'a','b','c','d','e','f','g','h','i','j',
      '4','5','6','7','8','9' }

Definition at line 50 of file nsDownloader.cpp.