cancel
Showing results for 
Search instead for 
Did you mean: 

Named Pipe Server in PB

Former Member
0 Kudos

Hi Folks,

I am looking for some ideas to realize inter-process communication with named pipe. After some googling I was really wondering because I found something about PowerBuilder I didn't know. Since PB 5 it is possible to create a "transport" instance and start listining for WinSock and NamedPipe Connection. The strange thing: The feature seems not to be in PB 12.6 anymore I didn't find a tip when and why it's gone.

New in PowerBuilder 5 - Writing a Server Application

Is there another way to realize named pipe commnunication? Any examples?

best regards

Benjamin

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Okay, I know the ways to implement sockets in PB. But I thought about Pipes/Names Pipes to let PB services easily communicate with a C# process. For example to handle request from a n ASP.NET applications.

https://msdn.microsoft.com/library/Bb546085%28v=VS.110%29.aspx

IMHO: This is not a homework for Appeon, but for us(!) framework developers. Look at the .NET world. Is it solved in C# or in Visual Studio? No, it's solved in .NET Framework .

Former Member
0 Kudos

=> IMHO: This is not a homework for Appeon, but for us(!) framework developers

OK ... I'll add named pipes to my list of framework feature enhancements.  

I'm still pushing for DPB & named pipes back in PB though. With DPB we could build Application Servers that assist not only PB C/S applications, but also the Appeon Server and Web Services. 

Former Member
0 Kudos

Hi Ben;

  Yes, that feature was available in PB 5.0 with the introduction of the Distributed PowerBuilder (DPB) feature. Of course, DPB was removed (much to the dismay of the entire PB community) in version 8.0.

  As a suggestion, you can use the following to enable Winsock features in PB 12.6 ...

1) Roland's Winsock (as David mentioned)

2) 3rd party products like ....

   PowerTCP - http://www.dart.com/winsock-activex-library-api.aspx

   SocketWrench  (I have used this product .. its awesome). - SocketTools ActiveX Edition - SocketTools

  etc ... Winsock Programmer's FAQ: Winsock Libraries and Controls

3) MS's Winsock control

   Get the IP address - Real's PowerBuilder Howto

4) Included feature in my Integrated or Web Service framework.

5) Open Source - ie: SocksCap64 download | SourceForge.net

6) Via Java:  http://pbdj.sys-con.com/node/35784

HTH

Regards ... Chris

PS: I have already been talking with the Appeon guys about DPB and why we should bring it back. 

Former Member
0 Kudos

I don't care how many times Sue denied it, Sybase removed DPB to force developers into EAServer. Then they totally mismanaged EAServer and then EOL'd it. Now we are left with nothing.

Former Member
0 Kudos

How true!  

Former Member
0 Kudos

I believe it went in PB12, we have switched to using

Topwiz Software - Winsock

Many thanks to Roland for putting that one up.

Cheers

David

Former Member
0 Kudos

It was removed in PB8.

Actually the code is still there in the PBVM, they just removed the transport object from the script compiler. It could be added back in if they wanted to.

Former Member
0 Kudos

The transport object no longer exists (since PB 8 AFAIR). You have to use easerver or a custom object e.g. mswinsck.ocx for socket communication.