rx_GetThreadNum @305
rx_SetThreadNum @306
- rx_SetConnectionEpoch @307
+; rx_SetConnectionEpoch @307
rx_GetConnectionEpoch @308
- rx_SetConnectionId @309
+; rx_SetConnectionId @309
rx_GetConnectionId @310
rx_GetSecurityData @311
rx_SetSecurityData @312
rx_SetConnDeadTime
rx_SetConnHardDeadTime
rx_SetConnSecondsUntilNatPing
-rx_SetConnectionEpoch
-rx_SetConnectionId
-rx_SetEpoch
rx_SetLocalStatus
rx_SetMaxMTU
rx_SetMaxReceiveWindow
/* ------------Exported Interfaces------------- */
-#ifdef AFS_PTHREAD_ENV
-/*
- * This mutex protects the following global variables:
- * rx_epoch
- */
-
-#define LOCK_EPOCH MUTEX_ENTER(&epoch_mutex)
-#define UNLOCK_EPOCH MUTEX_EXIT(&epoch_mutex)
-#else
-#define LOCK_EPOCH
-#define UNLOCK_EPOCH
-#endif /* AFS_PTHREAD_ENV */
-
-void
-rx_SetEpoch(afs_uint32 epoch)
-{
- LOCK_EPOCH;
- rx_epoch = epoch;
- UNLOCK_EPOCH;
-}
-
/* Initialize rx. A port number may be mentioned, in which case this
* becomes the default port number for any service installed later.
* If 0 is provided for the port number, a random port will be chosen
rxi_StopListener();
#endif /* AFS_PTHREAD_ENV */
shutdown_rxevent();
- rx_SetEpoch(0);
+ rx_epoch = 0;
#ifndef AFS_PTHREAD_ENV
#ifndef AFS_USE_GETTIMEOFDAY
clock_UnInit();
/* Connection management */
-extern void rx_SetConnectionEpoch(struct rx_connection *conn, afs_uint32 epoch);
extern afs_uint32 rx_GetConnectionEpoch(struct rx_connection *conn);
-extern void rx_SetConnectionId(struct rx_connection *conn, afs_uint32 id);
extern afs_uint32 rx_GetConnectionId(struct rx_connection *conn);
extern void *rx_GetSecurityData(struct rx_connection *conn);
extern void rx_SetSecurityData(struct rx_connection *conn, void *data);
#include "rx.h"
#include "rx_conn.h"
-void
-rx_SetConnectionEpoch(struct rx_connection *conn, afs_uint32 epoch) {
- conn->epoch = epoch;
-}
-
afs_uint32
rx_GetConnectionEpoch(struct rx_connection *conn) {
return conn->epoch;
}
-void
-rx_SetConnectionId(struct rx_connection *conn, afs_uint32 cid) {
- conn->cid = cid;
-}
-
afs_uint32
rx_GetConnectionId(struct rx_connection *conn) {
return conn->cid;
extern void rx_rto_setPeerTimeoutSecs(struct rx_peer *, int secs);
-extern void rx_SetEpoch(afs_uint32 epoch);
extern int rx_Init(u_int port);
extern int rx_InitHost(u_int host, u_int port);
extern void rx_SetBusyChannelError(afs_int32 onoff);