cNetwork: Added self pointers to keep objects alive for callbacks.
Ref.: http://forum.mc-server.org/showthread.php?tid=1700&pid=17947#pid17947
This commit is contained in:
@@ -78,6 +78,9 @@ protected:
|
||||
/** Contains the error message for the failure to listen. Only valid for non-listening instances. */
|
||||
AString m_ErrorMsg;
|
||||
|
||||
/** The SharedPtr to self, so that it can be passed to created links. */
|
||||
cServerHandleImplPtr m_SelfPtr;
|
||||
|
||||
|
||||
|
||||
/** Creates a new instance with the specified callbacks.
|
||||
|
||||
Reference in New Issue
Block a user