[Module] Named Pipe (Windows & MacOS)

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

[Module] Named Pipe (Windows & MacOS)

Beitrag von Thorsten1867 »

Named Pipe - Module (Windows & MacOS / 64Bit)

Austausch von Nachrichten zwischen zwei Programmen mittels "Named Pipes"

Code: Alles auswählen

; NamedPipe::GetFullName()     ; Path and name of the pipe

; ----- Server -----
; NamedPipe::EventPipe()       ; Returns the name of the pipe after #Event_Message
; NamedPipe::GetEventMessage() ; Querying the message after #Event_Message
; NamedPipe::Create()          ; Creates a pipe with the name and starts a thread to read the pipe
; NamedPipe::Use()             ; Use an existing pipe and starts a thread to read the pipe
; NamedPipe::Pause()           ; Pause the thread to read the pipe
; NamedPipe::Resume()          ; Resume the thread to read the pipe
; NamedPipe::Close()           ; Close the pipe and exit the thread
; NamedPipe::SetMessageReply() ; Set a reply to the receipt of a message.
	
; ----- Client -----
; NamedPipe::SendMessage()     ; Send a message (Return: Reply)
Download: NamedPipeModule.pbi
Zuletzt geändert von Thorsten1867 am 08.04.2020 11:43, insgesamt 2-mal geändert.
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Derren
Beiträge: 557
Registriert: 23.07.2011 02:08

Re: [Module] Named Pipe (Windows)

Beitrag von Derren »

Is this an inter-process Messaging System?
Can you provide an example? This sounds really interesting :allright:
Signatur und so
Benutzeravatar
tft
Beiträge: 605
Registriert: 08.09.2004 20:18
Computerausstattung: GTX Titan , i9 9900K , 32 GB Ram , 500 GB SSD , 3 ASUS FullHD Monitore and more
Wohnort: Dachsen
Kontaktdaten:

Re: [Module] Named Pipe (Windows)

Beitrag von tft »

Hallo,

auch ich bin sehr interessiert. Da ich gerade nach einer InterProzess Kommunikation suche. Kannst du näher darauf eingehen.

Gruss TFT
TFT seid 1989 , Turgut Frank Temucin , Dachsen/Berlin/Antalya
Aktuelles Projekte : Driving School Evergarden
YouTube : Pure Basic to go
FaceBook : Temuçin SourceMAgic Games
DISCORD : SourceMagic
W10 , i9 9900K ,32 GB Ram , GTX Titan , 3 Monitore FHD
ARDUINO Freak :-)
Benutzeravatar
Kiffi
Beiträge: 10621
Registriert: 08.09.2004 08:21
Wohnort: Amphibios 9

Re: [Module] Named Pipe (Windows)

Beitrag von Kiffi »

@Derren & @tft: im pbi ist ein Beispiel vorhanden.

Grüße ... Peter
Hygge
Benutzeravatar
mk-soft
Beiträge: 3700
Registriert: 24.11.2004 13:12
Wohnort: Germany

Re: [Module] Named Pipe (Windows)

Beitrag von mk-soft »

Gibt gerade im englischen Forum eine Diskussion wegen KillThread...

Muss mal schauen wie ich das Früher umgangen bin :wink:
Alles ist möglich, fragt sich nur wie...
Projekte ThreadToGUI / EventDesigner V3 / OOP-BaseClass-Modul
Downloads auf MyWebspace / OneDrive
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] Named Pipe (Windows)

Beitrag von Thorsten1867 »

Update: Unterstützung mehrerer Pipes
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] Named Pipe (Windows & MacOS)

Beitrag von Thorsten1867 »

Update: Unterstützung für MacOS
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Antworten