40 void sendRequest(vrpn_int32 index);
41 void sendRelease(
void);
42 void sendReleaseNotification(
void);
43 void sendGrantRequest(vrpn_int32 index);
44 void sendDenyRequest(vrpn_int32 index);
78 vrpn_bool isAvailable(
void)
const;
83 vrpn_bool isHeldLocally(
void)
const;
86 vrpn_bool isHeldRemotely(
void)
const;
101 vrpn_bool addRequestGrantedCallback(
void *userdata,
int (*)(
void *));
103 vrpn_bool addRequestDeniedCallback(
void *userdata,
int (*)(
void *));
105 vrpn_bool addTakeCallback(
void *userdata,
int (*)(
void *));
107 vrpn_bool addReleaseCallback(
void *userdata,
int (*)(
void *));
112 void requestIndex(
void);
129 void triggerGrantCallbacks(
void);
130 void triggerDenyCallbacks(
void);
131 void triggerTakeCallbacks(
void);
132 void triggerReleaseCallbacks(
void);
199 vrpn_PeerMutex(
const char *name,
int port,
const char *NICaddress = NULL);
207 vrpn_bool isAvailable(
void)
const;
212 vrpn_bool isHeldLocally(
void)
const;
215 vrpn_bool isHeldRemotely(
void)
const;
220 int numPeers(
void)
const;
234 vrpn_bool addPeer(
const char *stationName);
237 vrpn_bool addRequestGrantedCallback(
void *userdata,
int (*)(
void *));
239 vrpn_bool addRequestDeniedCallback(
void *userdata,
int (*)(
void *));
241 vrpn_bool addTakeCallback(
void *userdata,
int (*)(
void *));
246 vrpn_bool addReleaseCallback(
void *userdata,
int (*)(
void *));
292 vrpn_uint32 PortNumber);
294 vrpn_uint32 PortNumber);
296 void triggerGrantCallbacks(
void);
297 void triggerDenyCallbacks(
void);
298 void triggerTakeCallbacks(
void);
299 void triggerReleaseCallbacks(
void);
301 void checkGrantMutex(
void);
303 void init(
const char *name);
Generic connection class not specific to the transport mechanism.
vrpn_bool d_requestBeforeInit
mutexCallback * d_reqGrantedCB
mutexCallback * d_reqDeniedCB
mutexCallback * d_releaseCB
vrpn_int32 d_remoteIndex
Counts remotes who have had IDs issued to them.
vrpn_int32 d_requestMutex_type
vrpn_Connection * d_connection
vrpn_int32 d_release_type
vrpn_int32 d_initialize_type
vrpn_int32 d_requestIndex_type
vrpn_int32 d_denyRequest_type
vrpn_int32 d_grantRequest_type
vrpn_int32 d_releaseNotification_type
vrpn_Connection * d_server
Receive on this connection.
int d_numPeersGrantingLock
Counts the number of "grants" we've received after issuing a request; when this reaches d_numPeers,...
mutexCallback * d_releaseCB
peerData * d_peerData
Needed only to clean up when a peer shuts down (mid-request). It isn't currently feasible to have all...
vrpn_Connection ** d_peer
Send on these connections to other Mutex's well-known-ports.
mutexCallback * d_reqDeniedCB
vrpn_int32 d_release_type
vrpn_int32 d_denyRequest_type
vrpn_int32 d_grantRequest_type
int d_numConnectionsAllocated
Dynamic array size for d_peer and d_peerGrantedLock.
vrpn_int32 d_request_type
mutexCallback * d_reqGrantedCB
This structure is what is passed to a vrpn_Connection message callback.