Inherited by TheNetReturnAddress.
Protected Member Functions
System independent network-address base-class. Required to pass a return address of the client which send the message to the method handling the message. Inherit a new class from this base class and your system-specific network address-class.
All address-object-references passed to networkReceive of WOscReceiver (and inherited classes) will be managed and deleted internally.
WOscNetReturn features a garbage-collector like memory-management which keeps the object alive as long there are parents. Each parent has to register and unregister itself by calling addParent() and removeParent() resp..
If the last object unregisters itself, the object gets deleted.
All return-address management in this library is handled through references, thus the library does not have to be recompiled or even changed when using external internet-(or similar for different transport layers) addresses. Simply inherit.
An owner (user) of this object decreases the parent counter to announce, that it isn't interested in this object anymore. If the parent counter reaches zero, the object destructs itself.
|friend class WOscQueueItem
|friend class WOscReceiver