Last change
on this file since 175 was
65,
checked in by Torben Dannhauer, 14 years ago
|
new cluster implementation added: ENet
ENet is a reliable UDP implementation with quite simple usage and high performance for transmission with small or medium size packet.
|
File size:
522 bytes
|
Rev | Line | |
---|
[65] | 1 | /** |
---|
| 2 | @file callbacks.h |
---|
| 3 | @brief ENet callbacks |
---|
| 4 | */ |
---|
| 5 | #ifndef __ENET_CALLBACKS_H__ |
---|
| 6 | #define __ENET_CALLBACKS_H__ |
---|
| 7 | |
---|
| 8 | #include <stdlib.h> |
---|
| 9 | |
---|
| 10 | typedef struct _ENetCallbacks |
---|
| 11 | { |
---|
| 12 | void * (ENET_CALLBACK * malloc) (size_t size); |
---|
| 13 | void (ENET_CALLBACK * free) (void * memory); |
---|
| 14 | void (ENET_CALLBACK * no_memory) (void); |
---|
| 15 | } ENetCallbacks; |
---|
| 16 | |
---|
| 17 | /** @defgroup callbacks ENet internal callbacks |
---|
| 18 | @{ |
---|
| 19 | @ingroup private |
---|
| 20 | */ |
---|
| 21 | extern void * enet_malloc (size_t); |
---|
| 22 | extern void enet_free (void *); |
---|
| 23 | |
---|
| 24 | /** @} */ |
---|
| 25 | |
---|
| 26 | #endif /* __ENET_CALLBACKS_H__ */ |
---|
| 27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.