Coda Distributed File System
Classes | Macros | Functions
conn.c File Reference
#include <limits.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <time.h>
#include <assert.h>
#include <rpc2/rpc2.h>
#include <rpc2/secure.h>
#include "rpc2.private.h"
Include dependency graph for conn.c:

Classes

struct  RecentBind
 

Macros

#define HASHLENGTH   512
 
#define RPC2_DEAD_CONN_TIMEOUT   900
 
#define RBSIZE   300 /* max size of RBCache for large RPC */
 
#define RBCACHE_THRESHOLD   50
 

Functions

 DLLIST_HEAD (rpc2_ConnList)
 
 DLLIST_HEAD (rpc2_ConnFreeList)
 
int rpc2_InitConn (void)
 
struct CEntry__rpc2_GetConn (RPC2_Handle handle)
 
struct CEntryrpc2_GetConn (RPC2_Handle handle)
 
struct CEntryrpc2_getFreeConn ()
 
struct CEntryrpc2_AllocConn (struct RPC2_addrinfo *addr)
 
void rpc2_FreeConn (RPC2_Handle whichConn)
 
void rpc2_ReapDeadConns (void)
 
void rpc2_SetConnError (IN struct CEntry *ce)
 
void rpc2_NoteBinding (struct RPC2_addrinfo *addr, RPC2_Handle RemoteHandle, RPC2_Integer whichUnique, RPC2_Handle whichConn)
 
struct CEntryrpc2_ConnFromBindInfo (struct RPC2_addrinfo *addr, RPC2_Handle RemoteHandle, RPC2_Integer whichUnique)
 

Macro Definition Documentation

◆ HASHLENGTH

#define HASHLENGTH   512

◆ RBCACHE_THRESHOLD

#define RBCACHE_THRESHOLD   50

◆ RBSIZE

#define RBSIZE   300 /* max size of RBCache for large RPC */

◆ RPC2_DEAD_CONN_TIMEOUT

#define RPC2_DEAD_CONN_TIMEOUT   900

Function Documentation

◆ __rpc2_GetConn()

struct CEntry * __rpc2_GetConn ( RPC2_Handle  handle)

◆ DLLIST_HEAD() [1/2]

DLLIST_HEAD ( rpc2_ConnFreeList  )

◆ DLLIST_HEAD() [2/2]

DLLIST_HEAD ( rpc2_ConnList  )

◆ rpc2_AllocConn()

struct CEntry * rpc2_AllocConn ( struct RPC2_addrinfo addr)

◆ rpc2_ConnFromBindInfo()

struct CEntry * rpc2_ConnFromBindInfo ( struct RPC2_addrinfo addr,
RPC2_Handle  RemoteHandle,
RPC2_Integer  whichUnique 
)

◆ rpc2_FreeConn()

void rpc2_FreeConn ( RPC2_Handle  whichConn)

◆ rpc2_GetConn()

struct CEntry * rpc2_GetConn ( RPC2_Handle  handle)

◆ rpc2_getFreeConn()

struct CEntry * rpc2_getFreeConn ( )

◆ rpc2_InitConn()

int rpc2_InitConn ( void  )

◆ rpc2_NoteBinding()

void rpc2_NoteBinding ( struct RPC2_addrinfo addr,
RPC2_Handle  RemoteHandle,
RPC2_Integer  whichUnique,
RPC2_Handle  whichConn 
)

◆ rpc2_ReapDeadConns()

void rpc2_ReapDeadConns ( void  )

◆ rpc2_SetConnError()

void rpc2_SetConnError ( IN struct CEntry ce)