M
MasterChief
Hy!
I am trying to write a programm which can send "user defined" messages over
the network to a client and receive the messages.
The Message is a class I have written and I am using recv() and send() to
get and send the data.
Message class looks like:
class MsgEx
{
public:
MsgEx();
~MsgEx();
private:
string mSource;
string mDestination;
static unsigned long mMessageId;
MsgTimeEx mMsgTime;
MsgExType mMsgType;
string mData;
};
Now I am able to send char[] over my program but I can´t send my own class.
What do I have to do to send this kind of data?
Ronny
I am trying to write a programm which can send "user defined" messages over
the network to a client and receive the messages.
The Message is a class I have written and I am using recv() and send() to
get and send the data.
Message class looks like:
class MsgEx
{
public:
MsgEx();
~MsgEx();
private:
string mSource;
string mDestination;
static unsigned long mMessageId;
MsgTimeEx mMsgTime;
MsgExType mMsgType;
string mData;
};
Now I am able to send char[] over my program but I can´t send my own class.
What do I have to do to send this kind of data?
Ronny