Exemplo n.º 1
0
void ctt_disconnect (Domain_t *dp, Participant_t *rpp)
{
	CTT_ASSERT (dp);

	if ((rpp->p_builtins & (1 << EPB_PARTICIPANT_VOL_SEC_W)) != 0)
		disconnect_builtin (dp, EPB_PARTICIPANT_VOL_SEC_R, rpp, EPB_PARTICIPANT_VOL_SEC_W);
	if ((rpp->p_builtins & (1 << EPB_PARTICIPANT_VOL_SEC_R)) != 0)
		disconnect_builtin (dp, EPB_PARTICIPANT_VOL_SEC_W, rpp, EPB_PARTICIPANT_VOL_SEC_R);

	CTT_ASSERT (dp);
}
Exemplo n.º 2
0
void msg_disconnect (Domain_t *dp, Participant_t *rpp)
{
	if ((rpp->p_builtins & (1 << EPB_PARTICIPANT_MSG_R)) != 0)
		disconnect_builtin (dp, EPB_PARTICIPANT_MSG_W, rpp, EPB_PARTICIPANT_MSG_R);
	if ((rpp->p_builtins & (1 << EPB_PARTICIPANT_MSG_W)) != 0)
		disconnect_builtin (dp, EPB_PARTICIPANT_MSG_R, rpp, EPB_PARTICIPANT_MSG_W);
#if defined (DDS_SECURITY) && defined (DDS_NATIVE_SECURITY)
	if (NATIVE_SECURITY (dp)) {
		if ((rpp->p_builtins & (1 << EPB_PARTICIPANT_MSG_SEC_R)) != 0)
			disconnect_builtin (dp, EPB_PARTICIPANT_MSG_SEC_W, rpp, EPB_PARTICIPANT_MSG_SEC_R);
		if ((rpp->p_builtins & (1 << EPB_PARTICIPANT_MSG_SEC_W)) != 0)
			disconnect_builtin (dp, EPB_PARTICIPANT_MSG_SEC_R, rpp, EPB_PARTICIPANT_MSG_SEC_W);
	}
#endif
}