1. Cedric Schaub
  2. PowerBuilder
  3. Thursday, 11 July 2019 07:57 AM UTC

Hello,

I need to do some IPC with PowerBuilder and a NodeJS App.

At the moment we have solved the initial problem by using sockets and sending the data over TCP.

 

Because the NodeJS app and the PowerBuilder app run both on the same machine (localhost) I want to avoid the TCP overhead by using named pipes.

Is there any support for named pipes or any easy to implement solution in PowerBuilder 2019 [Build 2082]?

Thank you in advance.

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 11 July 2019 13:28 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Cedric;

   PB does not support TCP/IP let alone "Named Pipes". You would have to use a 3rd party tool for either or call the MS-Windows network API's yourself.

Regards ... Chris

Comment
  1. Cedric Schaub
  2. Monday, 15 July 2019 11:44 AM UTC
Hi Chris,



sadly there isn't any 3rd party tool besides SocketWrecnh (UDP/TCP) which works without any problems.

Calling the WIN API directly seems to be the only valid solution at the moment...



Thanks anyway!

  1. Helpful
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Friday, 12 July 2019 05:20 AM UTC
  2. PowerBuilder
  3. # 1

Hi Cedric,

I haven’t used NodeJS before, so I suggest you adopt Chris’s suggestion to use the HTTP protocol to try.

Furthermore, I notice that NODEJS supports C++ dynamic dll, you can use NodeJS to call the corresponding dll methods and then trigger the SendMessage method inside the dll to send the message to the custom event in the PB window.

You can refer to the link below and try but I haven’t verified it yet. Maybe you can google some other things.

https://community.appeon.com/index.php/qna/q-a/receive-string-data-from-c-sendmessage

https://answers.sap.com/questions/12296328/triggering-a-user-event-in-pb-window-form-another.html

 

 Regards,

Mark Lee

Comment
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Thursday, 11 July 2019 16:06 PM UTC
  2. PowerBuilder
  3. # 2

Hi

Kernal32.dll has named pipe functionality. I found this reference as a start:

https://docs.microsoft.com/en-us/windows/win32/api/namedpipeapi/nf-namedpipeapi-connectnamedpipe

Hope that helps

Regards

David

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.