> 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/readme/files/dir_30aba3d9bf6279a25d84abe4015711f7/dir_f7a957c8f5c8e80b5a8d4b37f193d419/dir_e8da2933844aa72825eccee783cf08f3/_i_oinit_8c.md).

# IOinit.c

[Macros](#define-members) | [Functions](#func-members) | [Variables](#var-members)

`#include "../inc/VHQTypes.h"` `#include "VHQIoInternals.h"` `#include "VHQDebug.h"` `#include "../inc/VHQIo.h"` `#include "../inc/VHQConfig.h"` `#include <string.h>` `#include "ComIntf.h"` `#include "VHQDownloader.h"`

Include dependency graph for IOinit.c:

![](/files/O1IX5hGwQ9MkUvgDrvox)

|         |                                                               |
| ------- | ------------------------------------------------------------- |
| Macros  |                                                               |
| #define | [\_MAIN\_LOOP\_EXTERNS\_](#a0c0b5276fb82904fa5f9885c7f8e58ba) |
| #define | [stricmp](#a4e0be90a3757e352f42612d09a7d1aa5)   strcasecmp    |
| #define | [strnicmp](#a16a19b1831112e876b010468ec15916f)   strncasecmp  |

|           |                                                                                                 |
| --------- | ----------------------------------------------------------------------------------------------- |
| Functions |                                                                                                 |
| bool      | [SerOpen](#a23b2bd37bcdaf463461bd318c0bd0f52) (char \*pszPort)                                  |
| void      | [SerClose](#a645e58ddb6b583511d180b7299309454) ()                                               |
| void \*   | [EventSchedulerInitCallbackTable](#a7101b4a88f78442eda98f6365281a281) (char \*pszOperatingMode) |
| bool      | [VHQioInitialize](#ac38679fae359d1639612f04bc0d751eb) (void)                                    |
| void      | [VHQioDeinitialize](#a3bef93bf6b09257a1517b262d02b0345) ()                                      |
| char \*   | [GetServerURL](#aadfc901514c1a797fd3ba88d32f9b18d) (void)                                       |
| void      | [VHQOpenComms](#a51a0f28c1f99e0f208d65c0480200d0e) (void)                                       |
| void      | [VHQCloseComms](#affe7c3f0c12e69f85332e6834792902b) (void)                                      |

|                |                                                            |
| -------------- | ---------------------------------------------------------- |
| Variables      |                                                            |
| int            | [g\_ui32CommError](#a4095508fc0881b9e1b167a95eb8a6576) = 0 |
| IO\_Properties | [g\_sIoProperties](#ae59f61de0086c11d79a1783b9c1d9043)     |

### DetailedDescription <a href="#detailed-description" id="detailed-description"></a>

Implements the wrappers for web services exported by VHQ server

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

### \_MAIN\_LOOP\_EXTERNS\_ <a href="#a0c0b5276fb82904fa5f9885c7f8e58ba" id="a0c0b5276fb82904fa5f9885c7f8e58ba"></a>

\#define \\\_MAIN\_LOOP\_EXTERNS\\\_

### stricmp <a href="#a4e0be90a3757e352f42612d09a7d1aa5" id="a4e0be90a3757e352f42612d09a7d1aa5"></a>

\#define stricmp   strcasecmp

### strnicmp <a href="#a16a19b1831112e876b010468ec15916f" id="a16a19b1831112e876b010468ec15916f"></a>

\#define strnicmp   strncasecmp

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

### EventSchedulerInitCallbackTable() <a href="#a7101b4a88f78442eda98f6365281a281" id="a7101b4a88f78442eda98f6365281a281"></a>

void\\\* EventSchedulerInitCallbackTable

This function initializes the event scheduler callback table to launch an event.

**Parameters**

\[in] **pszOperatingMode** = operating mode

#### Returns

pointer to callback table.

### GetServerURL() <a href="#aadfc901514c1a797fd3ba88d32f9b18d" id="aadfc901514c1a797fd3ba88d32f9b18d"></a>

char\\\* GetServerURL

This function gets the active server

#### Returns

void

### SerClose() <a href="#a645e58ddb6b583511d180b7299309454" id="a645e58ddb6b583511d180b7299309454"></a>

void SerClose

### SerOpen() <a href="#a23b2bd37bcdaf463461bd318c0bd0f52" id="a23b2bd37bcdaf463461bd318c0bd0f52"></a>

bool SerOpen

### VHQCloseComms() <a href="#affe7c3f0c12e69f85332e6834792902b" id="affe7c3f0c12e69f85332e6834792902b"></a>

void VHQCloseComms

### VHQioDeinitialize() <a href="#a3bef93bf6b09257a1517b262d02b0345" id="a3bef93bf6b09257a1517b262d02b0345"></a>

void VHQioDeinitialize

This function de-initializes the IO properties with data from config file.

#### Returns

void

### VHQioInitialize() <a href="#ac38679fae359d1639612f04bc0d751eb" id="ac38679fae359d1639612f04bc0d751eb"></a>

bool VHQioInitialize

This function initializes the IO properties with data from config file.

#### Returns

void

### VHQOpenComms() <a href="#a51a0f28c1f99e0f208d65c0480200d0e" id="a51a0f28c1f99e0f208d65c0480200d0e"></a>

void VHQOpenComms

### VariableDocumentation <a href="#variable-documentation" id="variable-documentation"></a>

### g\_sIoProperties <a href="#ae59f61de0086c11d79a1783b9c1d9043" id="ae59f61de0086c11d79a1783b9c1d9043"></a>

IO\_Properties g\_sIoProperties

### g\_ui32CommError <a href="#a4095508fc0881b9e1b167a95eb8a6576" id="a4095508fc0881b9e1b167a95eb8a6576"></a>

int g\_ui32CommError = 0


---

# 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/readme/files/dir_30aba3d9bf6279a25d84abe4015711f7/dir_f7a957c8f5c8e80b5a8d4b37f193d419/dir_e8da2933844aa72825eccee783cf08f3/_i_oinit_8c.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.
