void StatusNotify::postV2(QString uin, QString sid, QString skey, QString deviceId, QString userName) { m_post(WX_V2_SERVER_HOST, uin, sid, skey, deviceId, userName); }
void SendMsg::post(QString uin, QString sid, QString skey, QString deviceId, QString fromUserName, QString toUserName, QString content) { m_post(WX_SERVER_HOST, uin, sid, skey, deviceId, fromUserName, toUserName, content); }
int main(int argc, char *argv[]) { int opt; int hasEnded = 0; int i; for (i=0; i < MAX_SEM; i++) sem_array[i] = SEM_FAILED; while ( !hasEnded ) { printf("Escriba la opcion deseada\n1 - OPEN\t2 - WAIT\t3 - POST\t4 - CLOSE\n"); printf( "5 - UNLINK\t6 - GETVALUE\t7 - TRYWAIT\t8 - INIT\n"); printf( "9 - DESTROY\t10 - FREE SPACE\n"); if ( get_num(&opt) == -1 ) { hasEnded = 1; continue; } putchar('\n'); switch (opt) { case 1: m_open(); break; case 2: m_wait(); break; case 3: m_post(); break; case 4: m_close(); break; case 5: m_unlink(); break; case 6: m_getvalue(); break; case 7: m_trywait(); break; case 8: m_sem_init(); break; case 9: m_destroy(); break; case 10: free_space(); break; default: printf("Opcion invalida\n"); } } }
void GetMsg::postV2(QString uin, QString sid, QString skey, QStringList syncKey) { m_v2 = true; m_post(WX_V2_SERVER_HOST, uin, sid, skey, syncKey); }
void GetMsg::post(QString uin, QString sid, QString skey, QStringList syncKey) { m_post(WX_SERVER_HOST, uin, sid, skey, syncKey); }