mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:14:35 +02:00
call setSystemBufferSizes once bound
This commit is contained in:
parent
3f0eecc599
commit
8e55655ec3
2 changed files with 1 additions and 3 deletions
|
@ -24,8 +24,6 @@ using namespace udt;
|
||||||
Socket::Socket(QObject* parent) :
|
Socket::Socket(QObject* parent) :
|
||||||
QObject(parent)
|
QObject(parent)
|
||||||
{
|
{
|
||||||
setSystemBufferSizes();
|
|
||||||
|
|
||||||
connect(&_udpSocket, &QUdpSocket::readyRead, this, &Socket::readPendingDatagrams);
|
connect(&_udpSocket, &QUdpSocket::readyRead, this, &Socket::readPendingDatagrams);
|
||||||
|
|
||||||
// make sure our synchronization method is called every SYN interval
|
// make sure our synchronization method is called every SYN interval
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
qint64 writeDatagram(const char* data, qint64 size, const HifiSockAddr& sockAddr);
|
qint64 writeDatagram(const char* data, qint64 size, const HifiSockAddr& sockAddr);
|
||||||
qint64 writeDatagram(const QByteArray& datagram, const HifiSockAddr& sockAddr);
|
qint64 writeDatagram(const QByteArray& datagram, const HifiSockAddr& sockAddr);
|
||||||
|
|
||||||
void bind(const QHostAddress& address, quint16 port = 0) { _udpSocket.bind(address, port); }
|
void bind(const QHostAddress& address, quint16 port = 0) { _udpSocket.bind(address, port); setSystemBufferSizes(); }
|
||||||
void rebind();
|
void rebind();
|
||||||
|
|
||||||
void setPacketFilterOperator(PacketFilterOperator filterOperator) { _packetFilterOperator = filterOperator; }
|
void setPacketFilterOperator(PacketFilterOperator filterOperator) { _packetFilterOperator = filterOperator; }
|
||||||
|
|
Loading…
Reference in a new issue