Coda Distributed File System
|
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include "rpc2.private.h"
Macros | |
#define | HOSTHASHBUCKETS 64 |
#define | GOOD_NLE(e) ((e->Tag == RPC2_STATIC_NLE || e->Tag == RPC2_MEASURED_NLE)) |
Functions | |
void | rpc2_InitHost () |
struct HEntry * | rpc2_GetHost (struct RPC2_addrinfo *addr) |
void | rpc2_FreeHost (struct HEntry **whichHost) |
void | rpc2_GetHostLog (struct HEntry *whichHost, RPC2_NetLog *log, NetLogEntryType type) |
int | rpc2_AppendHostLog (struct HEntry *whichHost, RPC2_NetLogEntry *entry, NetLogEntryType type) |
void | rpc2_ClearHostLog (struct HEntry *whichHost, NetLogEntryType type) |
void | RPC2_UpdateEstimates (struct HEntry *host, RPC2_Unsigned elapsed_us, RPC2_Unsigned InBytes, RPC2_Unsigned OutBytes) |
int | rpc2_RetryInterval (struct CEntry *ce, int retry, struct timeval *tv, RPC2_Unsigned OutBytes, RPC2_Unsigned InBytes, int sftp) |
int | RPC2_GetRTT (RPC2_Handle handle, unsigned long *RTT, unsigned long *RTTvar) |
int | RPC2_GetBandwidth (RPC2_Handle handle, unsigned long *BWlow, unsigned long *BWavg, unsigned long *BWhigh) |
int | RPC2_GetLastObs (RPC2_Handle handle, struct timeval *tv) |
#define GOOD_NLE | ( | e | ) | ((e->Tag == RPC2_STATIC_NLE || e->Tag == RPC2_MEASURED_NLE)) |
#define HOSTHASHBUCKETS 64 |
int rpc2_AppendHostLog | ( | struct HEntry * | whichHost, |
RPC2_NetLogEntry * | entry, | ||
NetLogEntryType | type | ||
) |
void rpc2_ClearHostLog | ( | struct HEntry * | whichHost, |
NetLogEntryType | type | ||
) |
void rpc2_FreeHost | ( | struct HEntry ** | whichHost | ) |
int RPC2_GetBandwidth | ( | RPC2_Handle | handle, |
unsigned long * | BWlow, | ||
unsigned long * | BWavg, | ||
unsigned long * | BWhigh | ||
) |
struct HEntry * rpc2_GetHost | ( | struct RPC2_addrinfo * | addr | ) |
void rpc2_GetHostLog | ( | struct HEntry * | whichHost, |
RPC2_NetLog * | log, | ||
NetLogEntryType | type | ||
) |
int RPC2_GetLastObs | ( | RPC2_Handle | handle, |
struct timeval * | tv | ||
) |
int RPC2_GetRTT | ( | RPC2_Handle | handle, |
unsigned long * | RTT, | ||
unsigned long * | RTTvar | ||
) |
void rpc2_InitHost | ( | void | ) |
int rpc2_RetryInterval | ( | struct CEntry * | ce, |
int | retry, | ||
struct timeval * | tv, | ||
RPC2_Unsigned | OutBytes, | ||
RPC2_Unsigned | InBytes, | ||
int | sftp | ||
) |
void RPC2_UpdateEstimates | ( | struct HEntry * | host, |
RPC2_Unsigned | elapsed_us, | ||
RPC2_Unsigned | InBytes, | ||
RPC2_Unsigned | OutBytes | ||
) |