Jump to content

Overlapped Named Pipe IPC


Go to solution Solved by Nine,

Recommended Posts

Posted (edited)

From this this thread, I started to get interested in very fast communication that could be used between VBS or AutoIt.  And thanks to @argumentum, he is always there to challenge any IPC solution ;).

My last tests show that a request from a dedicated client is about 7ms to transit to the server.  And a small response takes about 4ms to be sent from the server to the client.

From a basic snippet, I changed it to make a UDF on request from the community of @mLipok :).  Now with this UDF, you can create duplex communication but also dual channels (one way to) IPC.  You can also make it persistent (close to a Peer-to-Peer approach) or a transactional (more of a client-server protocol).

Example 1 :  Duplex and persistent

Example 2 : Dual and persistent (VBS example included)

Example 3 : Duplex and transactional

Whether you find it useful or not, your comments are always welcome ! (former is my preference though)

Version 2022-02-11

* Added security descriptor to allow mix elevation between Client and Server

* Added support for IPC between computers

Version : 2020-12-30

* Added documentation to the UDF file

* Optimized code

* Moved some code from Example files into UDF file

 

 

NPIPC UDF.zipFetching info...

Edited by Nine
Posted

@Nine please combine functions from both snippet to one UDF file, and use unique names which will not interfere with other UDF's possible functions.

Then your work became quite nice UDF.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

BTW: Could you please fix the typo in the thread title? So people can find your code when searching for "named pipe" ;)

Edit: Done - M23

Edited by Melba23

My UDFs and Tutorials:

  Reveal hidden contents

 

  • Melba23 changed the title to Persistent Named Pipe IPC
Posted
  On 12/28/2020 at 9:39 AM, mLipok said:

please combine functions from both snippet to one UDF file, and use unique names which will not interfere with other UDF's possible functions.

Expand  

Alright, it is done.  :lol:

  • Solution

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...