bzero(pairs[pos].value, sizeof(STG_PAIR::value));
strncpy(pairs[pos].key, source[pos].first.c_str(), sizeof(STG_PAIR::key));
strncpy(pairs[pos].value, source[pos].second.c_str(), sizeof(STG_PAIR::value));
bzero(pairs[pos].value, sizeof(STG_PAIR::value));
strncpy(pairs[pos].key, source[pos].first.c_str(), sizeof(STG_PAIR::key));
strncpy(pairs[pos].value, source[pos].second.c_str(), sizeof(STG_PAIR::value));
}
bzero(pairs[source.size()].key, sizeof(STG_PAIR::key));
bzero(pairs[source.size()].value, sizeof(STG_PAIR::value));
}
bzero(pairs[source.size()].key, sizeof(STG_PAIR::key));
bzero(pairs[source.size()].value, sizeof(STG_PAIR::value));
client->request(type, toString(userName), toString(password), fromSTGPairs(pairs));
pthread_mutex_lock(&response.mutex);
while (!response.done)
pthread_cond_wait(&response.cond, &response.mutex);
pthread_mutex_unlock(&response.mutex);
client->request(type, toString(userName), toString(password), fromSTGPairs(pairs));
pthread_mutex_lock(&response.mutex);
while (!response.done)
pthread_cond_wait(&response.cond, &response.mutex);
pthread_mutex_unlock(&response.mutex);