SilcUInt32 ids_count; /* number of queried IDs */
SilcUInt32 reply_count; /* Requested reply count */
SilcDList attrs; /* Requested Attributes in WHOIS */
- SilcFSMSemaStruct wait_resolve; /* Resolving signaller */
+ SilcFSMEventStruct wait_resolve; /* Resolving signaller */
/* Query session data */
SilcServerComman cmd; /* Command context for query */
SilcBool timedout;
/* Wait here for the reply */
- SILC_FSM_SEMA_TIMEDWAIT(&pending->wait_reply, 10, 0, &timedout);
+ SILC_FSM_EVENT_TIMEDWAIT(&pending->wait_reply, 10, 0, &timedout);
if (timedout) {
/** Timeout waiting reply */
SilcBool timedout;
/* Wait here for the reply */
- SILC_FSM_SEMA_TIMEDWAIT(&res->pending->wait_reply,
+ SILC_FSM_EVENT_TIMEDWAIT(&res->pending->wait_reply,
res->local ? 3 : 10, 0, &timedout);
silc_free(res);
/* Signal main thread that reply was received */
- SILC_FSM_SEMA_POST(&query->wait_resolve);
+ SILC_FSM_EVENT_SIGNAL(&query->wait_resolve);
return SILC_FSM_FINISH;
}
SilcServerCommand cmd = query->cmd;
/* Wait here until all resolvings has arrived */
- SILC_FSM_SEMA_WAIT(&query->wait_resolve);
+ SILC_FSM_EVENT_WAIT(&query->wait_resolve);
if (silc_list_count(query->resolvings) > 0)
return SILC_FSM_CONTINUE;