PosixPluginFrontend

nscn.polaris2.protoc.bridge.frontend.PosixPluginFrontend

Frontend for Unix-likes other than macOS.

Uses a pair of FIFOs and a two-line shell script. Preferred over the socket frontend because it needs nothing beyond mkfifo and cat, which some minimal Linux images do not have an nc for.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class InternalState(inputPipe: Path, outputPipe: Path, tempDir: Path, shellScript: Path)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

override def cleanup(state: InternalState): Unit

Attributes

Definition Classes
override def prepare(plugin: ProtocCodeGenerator, env: ExtraEnv): (Path, InternalState)

Sets up the executable protoc should run, returning its path plus whatever state cleanup needs to tear it down.

Sets up the executable protoc should run, returning its path plus whatever state cleanup needs to tear it down.

Attributes

Definition Classes