> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/netloader_2include_2zontalk_8h_source.md).

# zontalk.h

[Go to the documentation of this file.](/s-adk-5.1-programmers-guide/readme/files/dir_78def5438dacdd6f60152554523ad1da/dir_fc700f2aafffb0df447d354405fcd21c/netloader_2include_2zontalk_8h.md)

```cpp
 1 #ifndef ZONTALKD_H_20221209
 2 #define ZONTALKD_H_20221209
 3 
 6 #include <string>
 7 #include <vector>
 8 
 9 #if defined _WIN32 && defined ZONTALK_SHARED_EXPORT
 10 # define DllSpec __declspec(dllexport)
 11 #elif defined __GNUC__ && defined ZONTALK_SHARED_EXPORT
 12 # define DllSpec __attribute__((visibility ("default")))
 13 #else
 14 # define DllSpec
 15 #endif
 16 
 18 
 19 #ifdef __cplusplus
 20 extern "C" {
 21 #endif
 22 
 24 enum ZonTalkResult {
 25  ZT_OK,
 26  ZT_RUNNING,
 27  ZT_ERROR
 28 };
 29 
 31 enum ZonTalkStatus {
 32  ZT_REBOOT_REQUESTED,
 33  ZT_STOP_REQUESTED,
 34  ZT_DISPLAY_MESSAGE,
 35  ZT_SET_TIME,
 37  ZT_DOWNLOAD_FILE=0x10,
 38  ZT_INSTALL_FILE,
 39  ZT_DOWNLOAD_OK,
 40  ZT_DOWNLOAD_ERROR,
 41  ZT_INSTALL_OK,
 42  ZT_INSTALL_ERROR,
 43 };
 44 
 46 enum ZonTalkInstallResult {
 47  ZTINST_OK,
 48  ZTINST_INVALID_PARAM,
 49  ZTINST_NO_SOFTWARE,
 50  ZTINST_FAIL
 51 };
 52 
 53 
 73 DllSpec enum ZonTalkResult zontalk_start(
 74  const char *port,
 75  const char *download_dir,
 76  void (*status_cb)(void *data,
 77  enum ZonTalkStatus status,
 78  const char *msg,
 79  int progress),
 80  enum ZonTalkInstallResult (*install_cb)(void *data,
 81  const char **files),
 82  void *data
 83 );
 84 
 105 DllSpec enum ZonTalkResult zontalk_start_fd(
 106  int fd,
 107  const char *download_dir,
 108  void (*status_cb)(void *data,
 109  enum ZonTalkStatus status,
 110  const char *msg,
 111  int progress),
 112  enum ZonTalkInstallResult (*install_cb)(void *data,
 113  const char **files),
 114  void *data
 115 );
 116 
 119 DllSpec void zontalk_stop();
 120 
 121 
 122 #ifdef __cplusplus
 123 } // extern "C"
 124 #endif // __cplusplus
 125 
 126 #undef DllSpec
 127 
 128 #endif
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/netloader_2include_2zontalk_8h_source.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
