Use of Pipes

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
localmotion34
Enthusiast
Enthusiast
Posts: 665
Joined: Fri Sep 12, 2003 10:40 pm
Location: Tallahassee, Florida

Use of Pipes

Post by localmotion34 »

How about native Pipe functions in PB?

Ive been trying forever to get Pipes to work, and i havent had much success.

How about something like:

PipeID=CreatePipe(#pipe, pipename$,Flags)

PipeID=IsPipe(pipename$)

Basically, native pipe functions could allow for communication between threads, apps, DLLs ect. If i had a pipe named "datatransfer", i could use the IsPipe()function to return the ID of the pipe, and then manupilate that pipe in another thread.

Code: Select all

!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

+1

This would be a great addition to PB :).

In the meantime, you can try and use the code in this thread:
http://www.purebasic.fr/english/viewtopic.php?t=11491

(scroll down for dmoc's code)
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
NicTheQuick
Addict
Addict
Posts: 1504
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Post by NicTheQuick »

+1

Yes, it's a good idea! It should work on all platforms, then I can often use it.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

I second that too :idea:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

i never used pipes to now, but looks like a good idea :)
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Use of Pipes

Post by Tenaja »

+1
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Use of Pipes

Post by davido »

+1
DE AA EB
Post Reply