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