Cross-platform C SDK logo

Cross-platform C SDK

INet

❮ Back
Next ❯
This page has been automatically translated using the Google Translate API services. We are working on improving texts. Thank you for your understanding and patience.

Types and Constants

enumierror_t
structHttp
structUrl
structJsonOpts

The INet library implements general Internet protocols. Although Sockets allow us to open a communication channel between two remote machines, it is necessary to define a format for the messages that both interlocutors will exchange, in order for communication to be carried out satisfactorily. Any modern operating system provides APIs to use the most popular Internet services, like HTTP. INet accesses this functionality under a common unified and simplified interface (Figure 1).

Inet library dependency tree.
Figure 1: INet dependencies. See NAppGUI API .

enum ierror_t

Error codes of network connections.

enum ierror_t
{
    ekINONET,
    ekINOHOST,
    ekITIMEOUT,
    ekISTREAM,
    ekISERVER,
    ekINOIMPL,
    ekIUNDEF,
    ekIOK
};
ekINONET

There is no internet connection on the device.

ekINOHOST

Unable to connect to the remote server.

ekITIMEOUT

Maximum timeout for connection has been exceeded.

ekISTREAM

Error in the I/O channel when reading or writing.

ekISERVER

Error in server response format.

ekINOIMPL

Functionality not implemented.

ekIUNDEF

Undetermined error.

ekIOK

No error.


struct Http

Manage an HTTP connection initiated from the client process.

struct Http;

struct Url

Allows access to individual fields of a URL (web address) URL.

struct Url;

struct JsonOpts

Options when processing a JSON script.

struct JsonOpts;
❮ Back
Next ❯