Skip to content
Rich5 edited this page Sep 25, 2015 · 5 revisions

Implementing ^import-module functionality

There is really nothing very advanced about how Harness imports modules across the wire. The basic protocol is as follows:

  1. Client sends a <rf> tag to indicate that a module is about to be sent
  2. Server receives tag and starts accumulating the following bytes received as a single script. This is basically automating the process as if the user were manually typing in an entire script.
  3. The client then opens the local ps1 file and sends it as a byte stream to the server.
  4. Once the transfer is complete the client then sends a closing </rf> tag to the server to indicate it's ok to process the script
Clone this wiki locally