kopia lustrzana https://gitlab.com/eliggett/wfview
Small fix when requesting stream
rodzic
ba0509ba61
commit
7d5a066108
|
@ -169,19 +169,19 @@ typedef union login_response_packet {
|
||||||
quint16 seq; // 0x06
|
quint16 seq; // 0x06
|
||||||
quint32 sentid; // 0x08
|
quint32 sentid; // 0x08
|
||||||
quint32 rcvdid; // 0x0c
|
quint32 rcvdid; // 0x0c
|
||||||
char unuseda[3]; // 0x10
|
char unuseda[3]; // 0x10
|
||||||
quint16 code; // 0x13
|
quint16 code; // 0x13
|
||||||
quint16 res; // 0x15
|
quint16 res; // 0x15
|
||||||
quint16 innerseq; // 0x17
|
quint16 innerseq; // 0x17
|
||||||
char unusedc; // 0x19
|
char unusedc; // 0x19
|
||||||
quint16 tokrequest; // 0x1a
|
quint16 tokrequest; // 0x1a
|
||||||
quint32 token; // 0x1c
|
quint32 token; // 0x1c
|
||||||
quint16 authstartid; // 0x20
|
quint16 authstartid; // 0x20
|
||||||
char unusedd[14]; // 0x22
|
char unusedd[14]; // 0x22
|
||||||
quint32 error; // 0x30
|
quint32 error; // 0x30
|
||||||
char unusede[12]; // 0x34
|
char unusede[12]; // 0x34
|
||||||
char connection[16]; // 0x40
|
char connection[16]; // 0x40
|
||||||
char unusedf[16]; // 0x50
|
char unusedf[16]; // 0x50
|
||||||
};
|
};
|
||||||
char packet[LOGIN_RESPONSE_SIZE];
|
char packet[LOGIN_RESPONSE_SIZE];
|
||||||
} *login_response_packet_t;
|
} *login_response_packet_t;
|
||||||
|
@ -195,18 +195,18 @@ typedef union login_packet {
|
||||||
quint16 seq; // 0x06
|
quint16 seq; // 0x06
|
||||||
quint32 sentid; // 0x08
|
quint32 sentid; // 0x08
|
||||||
quint32 rcvdid; // 0x0c
|
quint32 rcvdid; // 0x0c
|
||||||
char unuseda[3]; // 0x10
|
char unuseda[3]; // 0x10
|
||||||
quint16 code; // 0x13
|
quint16 code; // 0x13
|
||||||
quint16 res; // 0x15
|
quint16 res; // 0x15
|
||||||
quint16 innerseq; // 0x17
|
quint16 innerseq; // 0x17
|
||||||
char unusedb; // 0x19
|
char unusedb; // 0x19
|
||||||
quint16 tokrequest; // 0x1a
|
quint16 tokrequest; // 0x1a
|
||||||
quint32 token; // 0x1c
|
quint32 token; // 0x1c
|
||||||
char unusedc[32]; // 0x20
|
char unusedc[32]; // 0x20
|
||||||
char username[16]; // 0x40
|
char username[16]; // 0x40
|
||||||
char password[16]; // 0x50
|
char password[16]; // 0x50
|
||||||
char name[16]; // 0x60
|
char name[16]; // 0x60
|
||||||
char unusedf[16]; // 0x70
|
char unusedf[16]; // 0x70
|
||||||
};
|
};
|
||||||
char packet[LOGIN_SIZE];
|
char packet[LOGIN_SIZE];
|
||||||
} *login_packet_t;
|
} *login_packet_t;
|
||||||
|
@ -244,7 +244,7 @@ typedef union conninfo_packet {
|
||||||
char unusedj[8]; // 0x78
|
char unusedj[8]; // 0x78
|
||||||
};
|
};
|
||||||
struct { // Send
|
struct { // Send
|
||||||
char ident[16]; // 0x60 // Not sure what this is?
|
char username[16]; // 0x60
|
||||||
char rxenable; // 0x70
|
char rxenable; // 0x70
|
||||||
char txenable; // 0x71
|
char txenable; // 0x71
|
||||||
char rxcodec; // 0x72
|
char rxcodec; // 0x72
|
||||||
|
@ -253,9 +253,8 @@ typedef union conninfo_packet {
|
||||||
quint32 txsample; // 0x78
|
quint32 txsample; // 0x78
|
||||||
quint32 civport; // 0x7c
|
quint32 civport; // 0x7c
|
||||||
quint32 audioport; // 0x80
|
quint32 audioport; // 0x80
|
||||||
quint32 txbuffer; // 0x85
|
quint32 txbuffer; // 0x84
|
||||||
char unusedk; // 0x84
|
char unusedl[8]; // 0x88
|
||||||
char unusedl[7]; // 0x89
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -352,7 +352,7 @@ void udpHandler::sendRequestStream()
|
||||||
p.txenable = 1;
|
p.txenable = 1;
|
||||||
p.rxcodec = rxCodec;
|
p.rxcodec = rxCodec;
|
||||||
p.txcodec = txCodec;
|
p.txcodec = txCodec;
|
||||||
memcpy(&p.ident, QByteArrayLiteral("&96D7").constData(), 5);
|
memcpy(&p.username, usernameEncoded.constData(), usernameEncoded.length());
|
||||||
p.rxsample = qToBigEndian((quint32)rxSampleRate);
|
p.rxsample = qToBigEndian((quint32)rxSampleRate);
|
||||||
p.txsample = qToBigEndian((quint32)txSampleRate);
|
p.txsample = qToBigEndian((quint32)txSampleRate);
|
||||||
p.civport = qToBigEndian((quint32)civPort);
|
p.civport = qToBigEndian((quint32)civPort);
|
||||||
|
|
|
@ -243,6 +243,9 @@ private:
|
||||||
char identa;
|
char identa;
|
||||||
quint32 identb;
|
quint32 identb;
|
||||||
|
|
||||||
|
QByteArray usernameEncoded;
|
||||||
|
QByteArray passwordEncoded;
|
||||||
|
|
||||||
QTimer* tokenTimer = Q_NULLPTR;
|
QTimer* tokenTimer = Q_NULLPTR;
|
||||||
QTimer* areYouThereTimer = Q_NULLPTR;
|
QTimer* areYouThereTimer = Q_NULLPTR;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue