18 lines
734 B
C++
18 lines
734 B
C++
#ifndef __ENET_GODOT_EXT_H__
|
|
#define __ENET_GODOT_EXT_H__
|
|
|
|
/** Sets the host field in the address parameter from ip struct.
|
|
@param address destination to store resolved address
|
|
@param ip the ip struct to read from
|
|
@param size the size of the ip struct.
|
|
@retval 0 on success
|
|
@retval != 0 on failure
|
|
@returns the address of the given ip in address on success.
|
|
*/
|
|
ENET_API void enet_address_set_ip(ENetAddress * address, const uint8_t * ip, size_t size);
|
|
|
|
ENET_API void enet_host_dtls_server_setup (ENetHost *, void *, void *);
|
|
ENET_API void enet_host_dtls_client_setup (ENetHost *, void *, uint8_t, const char *);
|
|
ENET_API void enet_host_refuse_new_connections (ENetHost *, int);
|
|
|
|
#endif // __ENET_GODOT_EXT_H__
|