| 1 | #ifndef __ENET_GODOT_EXT_H__ | 
|---|
| 2 | #define __ENET_GODOT_EXT_H__ | 
|---|
| 3 |  | 
|---|
| 4 | /** Sets the host field in the address parameter from ip struct. | 
|---|
| 5 | @param address destination to store resolved address | 
|---|
| 6 | @param ip the ip struct to read from | 
|---|
| 7 | @param size the size of the ip struct. | 
|---|
| 8 | @retval 0 on success | 
|---|
| 9 | @retval != 0 on failure | 
|---|
| 10 | @returns the address of the given ip in address on success. | 
|---|
| 11 | */ | 
|---|
| 12 | ENET_API void enet_address_set_ip(ENetAddress * address, const uint8_t * ip, size_t size); | 
|---|
| 13 |  | 
|---|
| 14 | ENET_API int enet_host_dtls_server_setup (ENetHost *, void *); | 
|---|
| 15 | ENET_API int enet_host_dtls_client_setup (ENetHost *, const char *, void *); | 
|---|
| 16 | ENET_API void enet_host_refuse_new_connections (ENetHost *, int); | 
|---|
| 17 |  | 
|---|
| 18 | #endif // __ENET_GODOT_EXT_H__ | 
|---|
| 19 |  | 
|---|