mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 14:33:15 +02:00
Use udt instead declaring namespace in cpp
This commit is contained in:
parent
5261d7b4d1
commit
f4a9f21869
2 changed files with 4 additions and 10 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include <SharedUtil.h>
|
||||
|
||||
namespace udt {
|
||||
using namespace udt;
|
||||
|
||||
void UdtCC::init() {
|
||||
_rcInterval = _synInterval;
|
||||
|
@ -144,5 +144,3 @@ void UdtCC::onTimeout() {
|
|||
*/
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -11,19 +11,17 @@
|
|||
|
||||
#include "SeqNum.h"
|
||||
|
||||
namespace udt {
|
||||
|
||||
int seqcmp(const SeqNum& seq1, const SeqNum& seq2) {
|
||||
int udt::seqcmp(const SeqNum& seq1, const SeqNum& seq2) {
|
||||
return (glm::abs(seq1._value - seq2._value) < SeqNum::THRESHOLD) ? (seq1._value - seq2._value)
|
||||
: (seq2._value - seq1._value);
|
||||
}
|
||||
|
||||
int seqlen(const SeqNum& seq1, const SeqNum& seq2) {
|
||||
int udt::seqlen(const SeqNum& seq1, const SeqNum& seq2) {
|
||||
return (seq1._value <= seq2._value) ? (seq2._value - seq1._value + 1)
|
||||
: (seq2._value - seq1._value + SeqNum::MAX + 2);
|
||||
}
|
||||
|
||||
int seqoff(const SeqNum& seq1, const SeqNum& seq2) {
|
||||
int udt::seqoff(const SeqNum& seq1, const SeqNum& seq2) {
|
||||
if (glm::abs(seq1._value - seq2._value) < SeqNum::THRESHOLD) {
|
||||
return seq2._value - seq1._value;
|
||||
}
|
||||
|
@ -34,5 +32,3 @@ int seqoff(const SeqNum& seq1, const SeqNum& seq2) {
|
|||
|
||||
return seq2._value - seq1._value + SeqNum::MAX + 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue