2
0
nxrighthere 7 жил өмнө
parent
commit
6e07bb1281
1 өөрчлөгдсөн 15 нэмэгдсэн , 0 устгасан
  1. 15 0
      README.md

+ 15 - 0
README.md

@@ -188,6 +188,21 @@ Definitions of peer states for `Peer.State` property:
 
 
 `PeerState.Zombie` a peer not properly disconnected.
 `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
 ### Structures
 #### Address
 #### Address
 Contains a marshalled structure with host data and port number.
 Contains a marshalled structure with host data and port number.