|
|
@ -55,24 +55,17 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com |
|
|
|
class pfBackdoorMsg : public plMessage |
|
|
|
class pfBackdoorMsg : public plMessage |
|
|
|
{ |
|
|
|
{ |
|
|
|
protected: |
|
|
|
protected: |
|
|
|
char *fTarget; |
|
|
|
plString fTarget; |
|
|
|
char *fString; |
|
|
|
plString fString; |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
pfBackdoorMsg() : plMessage( nil, nil, nil ),fTarget(nil),fString(nil) {} |
|
|
|
pfBackdoorMsg() : plMessage(nil, nil, nil) {} |
|
|
|
pfBackdoorMsg( const char* target, const char* string) : plMessage( nil, nil, nil ) |
|
|
|
pfBackdoorMsg(const plString& target, const plString& string) |
|
|
|
|
|
|
|
: plMessage(nil, nil, nil), fTarget(target), fString(string) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// across the net and just to those listening
|
|
|
|
// across the net and just to those listening
|
|
|
|
SetBCastFlag( plMessage::kNetPropagate ); |
|
|
|
SetBCastFlag( plMessage::kNetPropagate ); |
|
|
|
SetBCastFlag( plMessage::kBCastByExactType ); |
|
|
|
SetBCastFlag( plMessage::kBCastByExactType ); |
|
|
|
fTarget = hsStrcpy( target ); |
|
|
|
|
|
|
|
fString = hsStrcpy( string ); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
~pfBackdoorMsg() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
delete [] fTarget; |
|
|
|
|
|
|
|
delete [] fString; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
CLASSNAME_REGISTER( pfBackdoorMsg ); |
|
|
|
CLASSNAME_REGISTER( pfBackdoorMsg ); |
|
|
@ -81,8 +74,8 @@ class pfBackdoorMsg : public plMessage |
|
|
|
virtual void Read(hsStream* s, hsResMgr* mgr)
|
|
|
|
virtual void Read(hsStream* s, hsResMgr* mgr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
plMessage::IMsgRead( s, mgr );
|
|
|
|
plMessage::IMsgRead( s, mgr );
|
|
|
|
fTarget = s->ReadSafeString(); |
|
|
|
fTarget = s->ReadSafeString_TEMP(); |
|
|
|
fString = s->ReadSafeString(); |
|
|
|
fString = s->ReadSafeString_TEMP(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
virtual void Write(hsStream* s, hsResMgr* mgr)
|
|
|
|
virtual void Write(hsStream* s, hsResMgr* mgr)
|
|
|
@ -92,8 +85,8 @@ class pfBackdoorMsg : public plMessage |
|
|
|
s->WriteSafeString(fString); |
|
|
|
s->WriteSafeString(fString); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const char *GetTarget( void ) { return fTarget; } |
|
|
|
plString GetTarget() const { return fTarget; } |
|
|
|
const char *GetString( void ) { return fString; } |
|
|
|
plString GetString() const { return fString; } |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|