C++ Client  0.0.0.0
C++ wrapper for Corelink DLL
CorelinkRecvData.h
Go to the documentation of this file.
1 
5 #ifndef CORELINKRECVDATA_H
6 #define CORELINKRECVDATA_H
7 
8 #include "CorelinkClasses.h"
9 
10 namespace Corelink {
11  inline RecvData::RecvData(STREAM_ID recvID, STREAM_ID sendID, const char* data, int hdrLen, int msgLen) :
12  recvID(recvID), sendID(sendID), data(data), hdrLen(hdrLen), msgLen(msgLen)
13  {}
14 
15  inline RecvData::RecvData(const RecvData& rhs) :
16  recvID(rhs.recvID), sendID(rhs.sendID), data(rhs.data), hdrLen(rhs.hdrLen), msgLen(rhs.msgLen)
17  {}
18 
20  data = nullptr;
21  }
22 
23  inline RecvData& RecvData::operator=(const RecvData& rhs) {
24  this->recvID = rhs.recvID;
25  this->sendID = rhs.sendID;
26  this->data = rhs.data;
27  this->hdrLen = rhs.hdrLen;
28  this->msgLen = rhs.msgLen;
29  return *this;
30  }
31 }
32 
33 #endif