Communications Server for Data Center Deployment

Communications Server for Data Center Deployment

Communications Server for Data Center Deployment

This community is for those connecting their legacy SNA application distributed platforms to the Z platform and centralizing expertise in the data centers.

 View Only

CPI-C for Rust available to allow applications written in Rust to make LU6.2 transaction

By Jeff Smith posted Mon July 25, 2022 03:29 PM

  
The Communications Server for Data Center Deployment can be used to provide LU6.2 transaction sessions to a Web server application using Java through its CPI-C for Java interface. The CPI-C for Java API provides all the Common Programming Interface for C verbs and definitions to Java applications so that APPC sessions be used to complete transactions. This CPI-C for Java has been available for at least 20+ years.

Using a similar approach, a CPI-C for Rust package has been developed that provides the same Common Programming Interface for C verbs and definitions to Rust applications so APPC transactions can be performed. Rust is a fairly new programming language and APPC is a legacy application communications protocol for performing transactions. Why should you mix old transactions with new programming languages?

The world still runs allot of its critical code on legacy programming languages like COBOL. On the mainframe, a COBOL application can make thousands of APPC transactions per second for many thousands of users on many thousands of records. On distributed platforms, Rust is a programming language that can reduce the vulnerable risks for applications that request transactions.

To assist developers who need to make LU6.2 transactions in Rust, a CPI-C for Rust development guide is available that provides a cpic.rs include file that defines the APIs to Rust. The include file also links required SNA libraries that are used to convert data from ASCII to EBCDIC, and back. The package also includes two example APPC "ping" applications that allow you to build and use Rust to test LU6.2 transactions to SNA nodes. There is a RUSTAPING example program that sends APPC pings to a partner LU. The second example is the RUST_TP transaction program that receives APPC pings and echos the data back. The package provide provide Windows, Linux on Intel (x86_64), Linux on Power (ppc64le) and Linux on IBM Z (s390x) versions of the code.

Visit the following web site to download the CPI-C for Rust package to explore how you can invoke LU6.2 transactions using Rust:

CPI-C for Rust Development Guide


Jeff L Smith   - Distributed Communications Server Development
0 comments
3 views

Permalink