windows build

This commit is contained in:
Brad Hefta-Gaub 2014-01-10 21:21:07 -08:00
parent b6b2b7f58b
commit dec16c8f0b
2 changed files with 15 additions and 11 deletions

View file

@ -57,6 +57,11 @@ void PacketSender::queuePacketForSending(const HifiSockAddr& address, unsigned c
_totalBytesQueued += packetLength;
}
void PacketSender::setPacketsPerSecond(int packetsPerSecond) {
_packetsPerSecond = std::max(MINIMUM_PACKETS_PER_SECOND, packetsPerSecond);
}
bool PacketSender::process() {
if (isThreaded()) {
return threadedProcess();

View file

@ -45,8 +45,7 @@ public:
/// \thread any thread, typically the application thread
void queuePacketForSending(const HifiSockAddr& address, unsigned char* packetData, ssize_t packetLength);
void setPacketsPerSecond(int packetsPerSecond)
{ _packetsPerSecond = std::max(MINIMUM_PACKETS_PER_SECOND, packetsPerSecond); }
void setPacketsPerSecond(int packetsPerSecond);
int getPacketsPerSecond() const { return _packetsPerSecond; }
void setPacketSenderNotify(PacketSenderNotify* notify) { _notify = notify; }