MacPluginFrontend

nscn.polaris2.protoc.bridge.frontend.MacPluginFrontend

Frontend for macOS: a server socket plus a one-line nc script.

Named pipes are used on other Unix-likes but are unreliable on macOS (scalapb/protoc-bridge#366), and nc is always present there.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited classlikes

case class InternalState(serverSocket: ServerSocket, shellScript: Path)

Attributes

Inherited from:
SocketBasedPluginFrontend
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Inherited methods

override def cleanup(state: InternalState): Unit

Attributes

Definition Classes
Inherited from:
SocketBasedPluginFrontend
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
Inherited from:
SocketBasedPluginFrontend