Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9182597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:35:51+00:00 2026-06-17T18:35:51+00:00

I am working on ITLSSPProc.dll which has native methods, it has the following struct

  • 0

I am working on ITLSSPProc.dll which has native methods, it has the following struct definition in C-language but I have to write code in Java. I have searched continuously for the last three days but can’t find a solution.

1.typedef struct{
            unsigned __int64 FixedKey; // 8 byte number for fixed host key
            unsigned __int64 EncryptKey; // 8 Byte number for variable key
            }SSP_FULL_KEY;

            2.typedef struct{
            unsigned __int64 Generator;
            unsigned __int64 Modulus;
            unsigned __int64 HostInter;
            unsigned __int64 HostRandom;
            unsigned __int64 SlaveInterKey;
            unsigned __int64 SlaveRandom;
            unsigned __int64 KeyHost;
            unsigned __int64 KeySlave;
            }SSP_KEYS

            3.typedef struct{
            SSP_FULL_KEY Key; // the full key
            unsigned long BaudRate; // baud rate of the packet
            unsigned long Timeout; // how long in ms to wait for a reply from the slave
            unsigned char PortNumber; // the serial com port number of the host
            unsigned char SSPAddress; // the SSP address of the slave
            unsigned char RetryLevel; // how many retries to the slave for non-response
            unsigned char EncryptionStatus; // is this an encrypted command 0 – No, 1 - Yes
            unsigned char CommandDataLength; // Number of bytes in the command
            unsigned char CommandData[255]; // Array containing the command bytes
            unsigned char ResponseStatus; // Response Status (PORT_STATUS enum)
            unsigned char ResponseDataLength; // how many bytes in the response
            unsigned char ResponseData[255]; // an array of response data
            unsigned char IgnoreError; // flag to suppress error box (0 – display,1 suppress)
            }SSP_COMMAND

Here is the Java code I have tried, but I am not able to call the native methods:

            public class SSP_FULL_KEY
                {
                    long FixedKey;
                    long EncryptKey;
                    public SSP_FULL_KEY(long fix, long encr)
                    {
                        FixedKey = fix;
                        EncryptKey = encr;
                    }
            }

        public class SSP_COMMAND
            {
                //string PortNumber; 
                SSP_FULL_KEY key;
                long BaudRate; // baud rate of the packet 
                long Timeout; // how long in ms to wait for a reply from the slave 
                String PortNumber; // the serial com port number of the host 
                String SSPAddress; // the SSP address of the slave 
                String RetryLevel; // how many retries to the slave for non-response 
                String EncryptionStatus; // is this an encrypted command 0 - No, 1 - Yes 
                String CommandDataLength; // Number of bytes in the command 
                String[] CommandData = new String[255]; // Array containing the command bytes 
                String ResponseStatus; // Response Status (PORT_STATUS enum) 
                String ResponseDataLength; // how many bytes in the response 
                String ResponseData[] = new String[255]; // an array of response data 
                String IgnoreError; // flag to suppress error box (0 - display,1- suppress) 

                public SSP_COMMAND(String comport)
                {
                    BaudRate = 9600;
                    Timeout = 500;
                    PortNumber =  comport;
                    RetryLevel = "5";
                    IgnoreError = "0";
                    EncryptionStatus = "0";
                    ResponseStatus = "0";
                    ResponseDataLength = "0";
                    SSPAddress = "0";
                    CommandDataLength = "0";
                    key = new SSP_FULL_KEY(012345670123, 012345670123);

                }
            } 



native method:OpenSSPComPort(SSPCOMMAND * cmd) 

Here I pass the parameters:

    Pointer to SSP_COMMAND structure
    Returns:
    WORD 0 for fail, 1 for success

and getting error unsatisfied link error

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:35:52+00:00Added an answer on June 17, 2026 at 6:35 pm

    Take a look on C to java converter

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working in Drupal today and simple cell spacing has been anything but simple for
Working through Pro ASP.NET MVC book and I got the following code snippet that
Working in C11, the following struct: struct S { unsigned a : 4; _Bool
working on an old translation sample code for windows phone 7. Recently, I have
Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
Working with H2 I get this error when I try to write a row
Working with cakePHP this is my situation: I have Users and Order s. Order
Working in Java FX 2.2. The Scene has a horizontal width that is fixed
Working with some basic java apps on CentOS 5 linux and I have my
working on my code to retrieve lat,long by clicking and it works fine. wondering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.