mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
remove hacked payloads
This commit is contained in:
parent
4932c3266f
commit
386250cff8
2 changed files with 1 additions and 9 deletions
|
@ -140,7 +140,7 @@ int Assignment::packToBuffer(unsigned char* buffer) {
|
|||
|
||||
numPackedBytes += packSocket(buffer + numPackedBytes, socketToPack);
|
||||
}
|
||||
|
||||
|
||||
return numPackedBytes;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
|
||||
#include "NodeList.h"
|
||||
|
||||
const int MAX_PAYLOAD_SIZE = 1024;
|
||||
|
||||
/// Holds information used for request, creation, and deployment of assignments
|
||||
class Assignment {
|
||||
public:
|
||||
|
@ -68,10 +66,6 @@ public:
|
|||
const sockaddr* getAttachedLocalSocket() { return _attachedLocalSocket; }
|
||||
void setAttachedLocalSocket(const sockaddr* attachedLocalSocket);
|
||||
|
||||
unsigned char* getDataPayload() { return _dataPayload; }
|
||||
int getDataPayloadSize() { return _dataPayloadSize; }
|
||||
void setDataPayload(unsigned char* data, int length) { memcpy(_dataPayload, data, length); _dataPayloadSize = length; }
|
||||
|
||||
/// Packs the assignment to the passed buffer
|
||||
/// \param buffer the buffer in which to pack the assignment
|
||||
/// \return number of bytes packed into buffer
|
||||
|
@ -89,8 +83,6 @@ private:
|
|||
sockaddr* _attachedLocalSocket; /// pointer to a local socket that relates to assignment, depends on direction
|
||||
timeval _time; /// time the assignment was created (set in constructor)
|
||||
int _numberOfInstances; /// the number of instances of this assignment
|
||||
unsigned char _dataPayload[MAX_PAYLOAD_SIZE];
|
||||
int _dataPayloadSize;
|
||||
};
|
||||
|
||||
QDebug operator<<(QDebug debug, const Assignment &assignment);
|
||||
|
|
Loading…
Reference in a new issue