diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/Windows64/Iggy/include/iggyexpruntime.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.Client/Windows64/Iggy/include/iggyexpruntime.h')
| -rw-r--r-- | Minecraft.Client/Windows64/Iggy/include/iggyexpruntime.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Minecraft.Client/Windows64/Iggy/include/iggyexpruntime.h b/Minecraft.Client/Windows64/Iggy/include/iggyexpruntime.h new file mode 100644 index 00000000..1f1a90a1 --- /dev/null +++ b/Minecraft.Client/Windows64/Iggy/include/iggyexpruntime.h @@ -0,0 +1,49 @@ +#ifndef __RAD_INCLUDE_IGGYEXPRUNTIME_H__ +#define __RAD_INCLUDE_IGGYEXPRUNTIME_H__ + +#include "rrCore.h" + +#define IDOC + +RADDEFSTART + +#ifndef __RAD_HIGGYEXP_ +#define __RAD_HIGGYEXP_ +typedef void * HIGGYEXP; +#endif + +//idoc(parent,IggyExpRuntime_API) + +#define IGGYEXP_MIN_STORAGE 1024 IDOC +/* The minimum-sized block you must provide to $IggyExpCreate */ + +IDOC RADEXPFUNC HIGGYEXP RADEXPLINK IggyExpCreate(char *ip_address, S32 port, void *storage, S32 storage_size_in_bytes); +/* Opens a connection to $IggyExplorer and returns an $HIGGYEXP wrapping the connection. + + $:ip_address The address of the machine running Iggy Explorer (can be numeric with dots, or textual, including "localhost") + $:port The port number on which Iggy Explorer is listening for a network connection (the default is 9190) + $:storage A small block of storage that needed to store the $HIGGYEXP, must be at least $IGGYEXP_MIN_STORAGE + $:storage_size_in_bytes The size of the block pointer to by <tt>storage</tt> + +Returns a NULL HIGGYEXP if the IP address/hostname can't be resolved, or no Iggy Explorer +can be contacted at the specified address/port. Otherwise returns a non-NULL $HIGGYEXP +which you can pass to $IggyUseExplorer. */ + +IDOC RADEXPFUNC void RADEXPLINK IggyExpDestroy(HIGGYEXP p); +/* Closes and destroys a connection to $IggyExplorer */ + +IDOC RADEXPFUNC rrbool RADEXPLINK IggyExpCheckValidity(HIGGYEXP p); +/* Checks if the connection represented by an $HIGGYEXP is still valid, i.e. +still connected to $IggyExplorer. + +Returns true if the connection is still valid; returns false if it is not valid. + +This might happen if someone closes Iggy Explorer, Iggy Explorer crashes, or +the network fails. You can this to poll and detect these conditions and do +something in response, such as trying to open a new connection. + +An invalid $HIGGYEXP must still be shutdown with $IggyExpDestroy. */ + +RADDEFEND + +#endif//__RAD_INCLUDE_IGGYEXPRUNTIME_H__
\ No newline at end of file |
