cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
lwx228
Level VIII

How does JSL receive network packets in memory?

Hello


I wonder if JMP can use JSL to receive network packets in memory and save these data as tables.


Since I'm not a programmer, this title may be inaccurate.

Thanks Experts!

8 REPLIES 8
ih
Super User (Alumni) ih
Super User (Alumni)

Re: How does JSL receive network packets in memory?

How would the packets arrive?  Would you go to a website and download something, or would JMP be waiting for incoming traffic on a specific port?

lwx228
Level VIII

Re: How does JSL receive network packets in memory?

Thank you for your attention.

 


I found the C++ development code that calls this data interface.

// STKDRV.h: interface for the CSTKDRV class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STKDRV_H__4BE51F0E_A261_11D2_B30C_00C04FCCA334__INCLUDED_)
#define AFX_STKDRV_H__4BE51F0E_A261_11D2_B30C_00C04FCCA334__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CSTKDRV  
{
public:
	CSTKDRV();
	virtual ~CSTKDRV();
public:
	DWORD Getd2DrvInfo(int nInfo,void * pBuf);
	int SetupReceiver(BOOL bSetup);
	int d2_Quit(HWND hWnd);
……
private:
	void GetAdress();
	wchar_t *CharToWChar(char *pszString);
	HINSTANCE	m_hSTKDrv;
};

#endif // !defined(AFX_STKDRV_H__4BE51F0E_A261_11D2_B30C_00C04FCCA334__INCLUDED_)


It seems complicated.

ih
Super User (Alumni) ih
Super User (Alumni)

Re: How does JSL receive network packets in memory?

Sorry I will not be any help reverse engineering this for you, but if you are looking for a program to receive messages that are sent by another program or computer, perhaps the server side logic in this post will help.

 

Socket communication to get and log messages from JMP, R, and python scripts 

lwx228
Level VIII

Re: How does JSL receive network packets in memory?

Thank you for the good way. I try to learn.

Re: How does JSL receive network packets in memory?

If you are trying to retrieve data from a website, you can look at HTTP Request. It covers simple "GET"s as well as "POST", "PATCH", "PUT" and so on.

-Bryan

lwx228
Level VIII

Re: How does JSL receive network packets in memory?

This packet is received through a program to receive the memory.
C++, VB and other development software in memory to read the data, save as a table.

Sending a packet every three seconds.Is always waiting to receive.

So I want to use JMP instead of VB to read and save these data.

 

Thanks Experts!

ih
Super User (Alumni) ih
Super User (Alumni)

Re: How does JSL receive network packets in memory?

It sounds like the socket communication link should give you the framework you need to get started then, you need to figure out what port to listen on and then write a function to handle the data as it comes in, for example by writing it to a data table.

lwx228
Level VIII

Re: How does JSL receive network packets in memory?

Thanks to the expert, I'm learning your way.

 

 

Writing code in VB is required to call the program to the specified DLL.
I combine VB code to try to prepare.