NetworkInterface

Schema: networking.capnp

Methods

connect: (url: Text, allowCompression: Bool = true) -> (connection : Connection)

listen: (host: Text = “0.0.0.0”, portHint: UInt16, listener: Listener, fallback: SimpleHttpServer) -> (openPort : OpenPort)

serve: (host: Text = “0.0.0.0”, portHint: UInt16, server: Capability, fallback: SimpleHttpServer) -> (openPort : OpenPort)

sshConnect: (host: Text, port: UInt16) -> (connection : SSHConnection)

Nested Interfaces