Network Core Engine

Principle

The Net module defines a low-level network framework for embedded devices. This module allows you to manage connection (TCP)- or connectionless (UDP)-oriented protocols for client/server networking applications.

Functional Description

The Net library includes two sub-protocols:

  • UDP: a connectionless-oriented protocol that allows communication with the server or client side in a non-reliable way. No handshake mechanisms, no guarantee on delivery, and no order in packet sending.
  • TCP: a connection-oriented protocol that allows communication with the server or client side in a reliable way. Handshakes mechanism used, bytes ordered, and error checking performed upon delivery.

Dependencies

  • LLNET_CHANNEL_impl.h, LLNET_SOCKETCHANNEL_impl.h, LLNET_STREAMSOCKETCHANNEL_impl.h, LLNET_DATAGRAMSOCKETCHANNEL_impl.h, LLNET_DNS_impl.h, LLNET_NETWORKADDRESS_impl.h, LLNET_NETWORKINTERFACE_impl.h (see LLNET: Network).

Installation

The Net Pack bundles several libraries: Net, SSL & Security.

Refer to the chapter Pack Import to integrate a specific version of the Net Pack:

<dependencies>
    <dependency org="com.microej.pack.net" name="net-pack" rev="11.0.2"/>
</dependencies>

Then, using the VEE Port Editor (see Platform Module Configuration), enable the Net library (API, Impl & Mock):

Net Pack Modules

Net Pack Modules

Use

The Net API Module must be added to the module.ivy of the MicroEJ Application project to use the Net library.

<dependency org="ej.api" name="net" rev="1.1.4"/>

This library provides a set of options. Refer to the chapter Standalone Application Options which lists all available options.