remove hacked payloads

This commit is contained in:
ZappoMan 2013-09-17 13:41:04 -07:00
parent 4932c3266f
commit 386250cff8
2 changed files with 1 additions and 9 deletions

View file

@ -140,7 +140,7 @@ int Assignment::packToBuffer(unsigned char* buffer) {
numPackedBytes += packSocket(buffer + numPackedBytes, socketToPack);
}
return numPackedBytes;
}

View file

@ -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);