> 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/adk-5.0-programmers-guide/readme/files/dir_78def5438dacdd6f60152554523ad1da/dir_fc700f2aafffb0df447d354405fcd21c/netloader_2include_2zontalk_8h.md).

# zontalk.h

[Macros](#define-members) | [Enumerations](#enum-members) | [Functions](#func-members)

`#include <string>` `#include <vector>`

Include dependency graph for zontalk.h:

![](/files/sj2SFpgzcQfNhwat8o1d)

[Go to the source code of this file.](/adk-5.0-programmers-guide/netloader_2include_2zontalk_8h_source.md)

|         |                                               |
| ------- | --------------------------------------------- |
| Macros  |                                               |
| #define | [DllSpec](#ad7c2e1cb200073ed64c64285a5f37231) |

|              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enumerations |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| enum         | [ZonTalkResult](#aeaa8a9ca85977e77164e89bceda949d5) { [ZT\_OK](#aeaa8a9ca85977e77164e89bceda949d5af38aca930cd92b0c37cde9abd924122d), [ZT\_RUNNING](#aeaa8a9ca85977e77164e89bceda949d5a01b45d9eb79bd03265242cfb67549e5d), [ZT\_ERROR](#aeaa8a9ca85977e77164e89bceda949d5a2c9dc50efd177d15fac99999fda21f5c) }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| enum         | <p><a href="#a60ef9b524cba78d1ddec6f77edf742a1">ZonTalkStatus</a> {<br>  <a href="#a60ef9b524cba78d1ddec6f77edf742a1a9c667915f6e846d3920acf1e1d19c7ff">ZT\_REBOOT\_REQUESTED</a>, <a href="#a60ef9b524cba78d1ddec6f77edf742a1aa6b28ae67aaa15581894e4e7ec416ce2">ZT\_STOP\_REQUESTED</a>, <a href="#a60ef9b524cba78d1ddec6f77edf742a1a12410ecf4422b614463c78fbeb5bf044">ZT\_DISPLAY\_MESSAGE</a>, <a href="#a60ef9b524cba78d1ddec6f77edf742a1ae7e6ed3f3510383f25b5324601387799">ZT\_SET\_TIME</a>,<br>  <a href="#a60ef9b524cba78d1ddec6f77edf742a1a47fcf672579d9f99329e523af7222444">ZT\_DOWNLOAD\_FILE</a> =0x10, <a href="#a60ef9b524cba78d1ddec6f77edf742a1a99ab4354366b82282c56e63e393805b7">ZT\_INSTALL\_FILE</a>, <a href="#a60ef9b524cba78d1ddec6f77edf742a1ae52746516c504c7e9b77f3f9d7858fc0">ZT\_DOWNLOAD\_OK</a>, <a href="#a60ef9b524cba78d1ddec6f77edf742a1a900744ae03edd032476573927f68b8a5">ZT\_DOWNLOAD\_ERROR</a>,<br>  <a href="#a60ef9b524cba78d1ddec6f77edf742a1ab4ad81b9f8c661c1784a949fcf7c6e74">ZT\_INSTALL\_OK</a>, <a href="#a60ef9b524cba78d1ddec6f77edf742a1abc1d534af5947dade88052728e7d7e2f">ZT\_INSTALL\_ERROR</a><br>}</p> |
| enum         | [ZonTalkInstallResult](#aae12385f0877faedf9c7b5c89a4d95a9) { [ZTINST\_OK](#aae12385f0877faedf9c7b5c89a4d95a9ab74b874bc388a3a809733ee582453203), [ZTINST\_INVALID\_PARAM](#aae12385f0877faedf9c7b5c89a4d95a9ad4d61abc5a31ef2862c5a1b1ba65d0df), [ZTINST\_NO\_SOFTWARE](#aae12385f0877faedf9c7b5c89a4d95a9a70167f60c5f82b291d6916bad23bec91), [ZTINST\_FAIL](#aae12385f0877faedf9c7b5c89a4d95a9aa47dc6bf758952198a0ed3d75e6cb7ed) }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

|                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Functions                                                                                                                                                                                                                                                                |                                                                                                                                                                                                                                                                                                                                                                        |
| [DllSpec](/adk-5.0-programmers-guide/readme/files/dir_15b7eb99384c20f55db7776b7b1ecdad/dir_7d99a5752ef00d9a9478541a793df8d8/dir_b95d7ee73b2963b5e37f0a7269e7a4c6/sound_8h.md#ad7c2e1cb200073ed64c64285a5f37231) enum [ZonTalkResult](#aeaa8a9ca85977e77164e89bceda949d5) | [zontalk\_start](#ae82bb76dbde2d2bff589b145656f9413) (const char \*port, const char \*download\_dir, void(\*status\_cb)(void \*data, enum [ZonTalkStatus](#a60ef9b524cba78d1ddec6f77edf742a1) status, const char \*msg, int progress), enum [ZonTalkInstallResult](#aae12385f0877faedf9c7b5c89a4d95a9)(\*install\_cb)(void \*data, const char \*\*files), void \*data) |
| [DllSpec](/adk-5.0-programmers-guide/readme/files/dir_15b7eb99384c20f55db7776b7b1ecdad/dir_7d99a5752ef00d9a9478541a793df8d8/dir_b95d7ee73b2963b5e37f0a7269e7a4c6/sound_8h.md#ad7c2e1cb200073ed64c64285a5f37231) enum [ZonTalkResult](#aeaa8a9ca85977e77164e89bceda949d5) | [zontalk\_start\_fd](#ab8f278c1fe887b1726a5fe6a49b1fad6) (int fd, const char \*download\_dir, void(\*status\_cb)(void \*data, enum [ZonTalkStatus](#a60ef9b524cba78d1ddec6f77edf742a1) status, const char \*msg, int progress), enum [ZonTalkInstallResult](#aae12385f0877faedf9c7b5c89a4d95a9)(\*install\_cb)(void \*data, const char \*\*files), void \*data)        |
| [DllSpec](/adk-5.0-programmers-guide/readme/files/dir_15b7eb99384c20f55db7776b7b1ecdad/dir_7d99a5752ef00d9a9478541a793df8d8/dir_b95d7ee73b2963b5e37f0a7269e7a4c6/sound_8h.md#ad7c2e1cb200073ed64c64285a5f37231) void                                                     | [zontalk\_stop](#a2759e0db7fe364e7c010c58b2b4efd58) ()                                                                                                                                                                                                                                                                                                                 |

### MacroDefinition Documentation <a href="#macro-definition-documentation" id="macro-definition-documentation"></a>

### DllSpec <a href="#ad7c2e1cb200073ed64c64285a5f37231" id="ad7c2e1cb200073ed64c64285a5f37231"></a>

\#define DllSpec

### EnumerationType Documentation <a href="#enumeration-type-documentation" id="enumeration-type-documentation"></a>

### ZonTalkInstallResult <a href="#aae12385f0877faedf9c7b5c89a4d95a9" id="aae12385f0877faedf9c7b5c89a4d95a9"></a>

enum \[ZonTalkInstallResult]\(#aae12385f0877faedf9c7b5c89a4d95a9)

Install callback result

|                        |                                    |
| ---------------------- | ---------------------------------- |
| Enumerator             |                                    |
| ZTINST\_OK             | installation successful            |
| ZTINST\_INVALID\_PARAM | invalid parameters                 |
| ZTINST\_NO\_SOFTWARE   | no software download file provided |
| ZTINST\_FAIL           | software installation failed       |

### ZonTalkResult <a href="#aeaa8a9ca85977e77164e89bceda949d5" id="aeaa8a9ca85977e77164e89bceda949d5"></a>

enum \[ZonTalkResult]\(#aeaa8a9ca85977e77164e89bceda949d5)

ZonTalk error code

|             |                                   |
| ----------- | --------------------------------- |
| Enumerator  |                                   |
| ZT\_OK      | no error                          |
| ZT\_RUNNING | zontalk server is already running |
| ZT\_ERROR   | generic error                     |

### ZonTalkStatus <a href="#a60ef9b524cba78d1ddec6f77edf742a1" id="a60ef9b524cba78d1ddec6f77edf742a1"></a>

enum \[ZonTalkStatus]\(#a60ef9b524cba78d1ddec6f77edf742a1)

ZonTalk status for status callback

|                       |                                                                                                              |
| --------------------- | ------------------------------------------------------------------------------------------------------------ |
| Enumerator            |                                                                                                              |
| ZT\_REBOOT\_REQUESTED | reboot is requested (msg is empty)                                                                           |
| ZT\_STOP\_REQUESTED   | stopping the server is requested (msg is empty)                                                              |
| ZT\_DISPLAY\_MESSAGE  | display message (msg contains message)                                                                       |
| ZT\_SET\_TIME         | set date / time, (msg contains date/time)                                                                    |
| ZT\_DOWNLOAD\_FILE    | file download (msg contains file name)                                                                       |
| ZT\_INSTALL\_FILE     | install file (msg contains file name)                                                                        |
| ZT\_DOWNLOAD\_OK      | download is complete, no installation required (also indicates end of file download, msg contains file name) |
| ZT\_DOWNLOAD\_ERROR   | download failed (also indicates end of file download, msg contains error)                                    |
| ZT\_INSTALL\_OK       | installation done (also indicates end of file download, msg contains file name)                              |
| ZT\_INSTALL\_ERROR    | installation failed (also indicates end of file download, msg contains error)                                |

### FunctionDocumentation <a href="#function-documentation" id="function-documentation"></a>

### zontalk\_start() <a href="#ae82bb76dbde2d2bff589b145656f9413" id="ae82bb76dbde2d2bff589b145656f9413"></a>

[DllSpec](/adk-5.0-programmers-guide/readme/files/dir_15b7eb99384c20f55db7776b7b1ecdad/dir_7d99a5752ef00d9a9478541a793df8d8/dir_b95d7ee73b2963b5e37f0a7269e7a4c6/sound_8h.md#ad7c2e1cb200073ed64c64285a5f37231) enum \[ZonTalkResult]\(#aeaa8a9ca85977e77164e89bceda949d5) zontalk\_start

start the zontalk server

**Parameters**

\[in] **port** serial port \[in] **download\_dir** directory to which files are downloaded \[in] **status\_cb** callback for status updates or NULL \[in] **install\_cb** callback to be invoked or NULL \[in] **data** data pointer for status\_cb and install\_cb

#### Returns

error code

The status\_cb callback is invoked with the following parameters:

**Parameters**

\[in] **data** data pointer as provided to netloader\_set\_callback() \[in] **status** netloader status as above \[in] **msg** display message, file name or error code (see NetLoaderStatus) \[in] **progress** progress in % (0..100) for NETLD\_DOWN\_LOAD\_FILE and NETLD\_INSTALL\_FILE

The install\_cb callback is invoked for installing files with the following parameters:

**Parameters**

\[in] **data** data pointer as provided to netloader\_set\_callback() \[in] **files** array of file names to be installed, terminated by NULL pointer

#### Returns

NETINST\_OK or error code

### zontalk\_start\_fd() <a href="#ab8f278c1fe887b1726a5fe6a49b1fad6" id="ab8f278c1fe887b1726a5fe6a49b1fad6"></a>

[DllSpec](/adk-5.0-programmers-guide/readme/files/dir_15b7eb99384c20f55db7776b7b1ecdad/dir_7d99a5752ef00d9a9478541a793df8d8/dir_b95d7ee73b2963b5e37f0a7269e7a4c6/sound_8h.md#ad7c2e1cb200073ed64c64285a5f37231) enum \[ZonTalkResult]\(#aeaa8a9ca85977e77164e89bceda949d5) zontalk\_start\_fd

start the zontalk server on an already open port

**Parameters**

\[in] **fd** open and configured file descriptor to use for zontalk. The file descriptor will be closed when no longer needed. \[in] **download\_dir** directory to which files are downloaded \[in] **status\_cb** callback for status updates or NULL \[in] **install\_cb** callback to be invoked or NULL \[in] **data** data pointer for status\_cb and install\_cb

#### Returns

error code

The status\_cb callback is invoked with the following parameters:

**Parameters**

\[in] **data** data pointer as provided to netloader\_set\_callback() \[in] **status** netloader status as above \[in] **msg** display message, file name or error code (see NetLoaderStatus) \[in] **progress** progress in % (0..100) for NETLD\_DOWN\_LOAD\_FILE and NETLD\_INSTALL\_FILE

The install\_cb callback is invoked for installing files with the following parameters:

**Parameters**

\[in] **data** data pointer as provided to netloader\_set\_callback() \[in] **files** array of file names to be installed, terminated by NULL pointer

#### Returns

NETINST\_OK or error code

### zontalk\_stop() <a href="#a2759e0db7fe364e7c010c58b2b4efd58" id="a2759e0db7fe364e7c010c58b2b4efd58"></a>

[DllSpec](/adk-5.0-programmers-guide/readme/files/dir_15b7eb99384c20f55db7776b7b1ecdad/dir_7d99a5752ef00d9a9478541a793df8d8/dir_b95d7ee73b2963b5e37f0a7269e7a4c6/sound_8h.md#ad7c2e1cb200073ed64c64285a5f37231) void zontalk\_stop

stop the zontalk server


---

# 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/adk-5.0-programmers-guide/readme/files/dir_78def5438dacdd6f60152554523ad1da/dir_fc700f2aafffb0df447d354405fcd21c/netloader_2include_2zontalk_8h.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.
