C / Managed Code Communication

Description

In this training, you will get an in depth view of the different ways to perform C / Managed Code communication using Native Interface Mechanisms.

What you will learn:

  • SNI Overview

  • Exposing a C API in Java

  • Immortal Arrays

  • Error Management

  • Blocking Functions and Asynchronous Code

  • Referencing C resources from Managed Code

  • Overview of C / Managed Code Communication libraries: Event Queue, UI Pump, Shielded Plug

Intended Audience

This training is designed for developers who want to learn about communication mechanisms between C and Managed Code.

Prerequisites

To get the most out of this training, participants should have:

  • A good understanding of the Overview section.

  • A basic knowledge of the MicroEJ Glossary.

  • A basic knowledge of C programming language.

  • A basic knowledge of Java programming language.

Training Resources

Unit 1: C / Managed Code Communication with MICROEJ VEE

This training provides a comprehensive overview of the various methods for C / Managed Code communication:

Unit 2: Implementing a Blocking Java Native Method with SNI

This training describes a use case showing how to properly implement a blocking native method: