Back to index

lightning-sunbird  0.9+nobinonly
Defines | Variables
nsSocket.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include "nsSocket.h"

Go to the source code of this file.

Defines

#define MAXSOCKADDR   128
#define SHUT_RD   0
#define SHUT_WR   1
#define SHUT_RDWR   2

Variables

const int kUsecsPerSec = 1000000
const int kRecvTimeoutThresholdUsecs = 30 * kUsecsPerSec
const int kTimeoutThresholdUsecs = 120 * kUsecsPerSec
const int kTimeoutSelectUsecs = 100000
const int kKilobyte = 1024
const int kUsecsPerKBFactor = (kUsecsPerSec/kKilobyte)
const int kReadBufSize = 1024

Define Documentation

#define MAXSOCKADDR   128

Definition at line 80 of file nsSocket.cpp.

#define SHUT_RD   0

Definition at line 87 of file nsSocket.cpp.

#define SHUT_RDWR   2

Definition at line 93 of file nsSocket.cpp.

#define SHUT_WR   1

Definition at line 90 of file nsSocket.cpp.


Variable Documentation

Definition at line 100 of file nsSocket.cpp.

Definition at line 102 of file nsSocket.cpp.

Definition at line 97 of file nsSocket.cpp.

Definition at line 99 of file nsSocket.cpp.

Definition at line 98 of file nsSocket.cpp.

Definition at line 101 of file nsSocket.cpp.

const int kUsecsPerSec = 1000000

Definition at line 96 of file nsSocket.cpp.