|
|
@@ -188,6 +188,21 @@ Definitions of peer states for `Peer.State` property:
|
|
|
|
|
|
`PeerState.Zombie` a peer not properly disconnected.
|
|
|
|
|
|
+### Delegates
|
|
|
+#### Memory callbacks
|
|
|
+Provides per application events.
|
|
|
+
|
|
|
+`IntPtr AllocCallback(IntPtr size)` notifies when a memory is requested for allocation. Expects pointer to the newly allocated memory.
|
|
|
+
|
|
|
+`void FreeCallback(IntPtr memory)` notifies when the memory can be freed.
|
|
|
+
|
|
|
+`void NoMemoryCallback()` notifies when memory is not enough.
|
|
|
+
|
|
|
+#### Packet callbacks
|
|
|
+Provides per packet events.
|
|
|
+
|
|
|
+`PacketFreeCallback(Packet packet)` notifies when a packet is being destroyed.
|
|
|
+
|
|
|
### Structures
|
|
|
#### Address
|
|
|
Contains a marshalled structure with host data and port number.
|