#客户端-服务器 #服务器 #客户端 #协议 #网络 #API

已删除 over-there-core

为开发者和工具提供客户端与服务器通信网关的核心库

0.1.0-alpha.1 2020年3月24日

#246 in #协议

MIT/Apache

465KB
12K SLoC

已被弃用,转而使用 https://github.com/chipsenkbeil/distant

Over There — 构建状态 最新版本 最新文档 over-there: rustc 1.39+

Over There是一个库和工具,允许从“那里”远程管理和执行软件。

构建开发者版本

默认情况下,不包括CLI功能。这意味着执行正常构建将不包括二进制文件

cargo build

因此,必须指定cli功能

cargo build --features 'cli'

发布版本

有关文件大小的更多信息,请参阅以下链接: https://stackoverflow.com/a/54842093

cargo build --release --features 'cli'
strip target/release/over-there

不动态链接libc的发布版本

rustup target add x86_64-unknown-linux-musl
cargo build --release --target=x86_64-unknown-linux-musl --features 'cli'

请注意,在Mac OS X上,您需要安装musl-gcc

brew install FiloSottile/musl-cross/musl-cross

并且要在Mac上执行strip,请使用musl strip

x86_64-linux-musl-gcc target/x86_64-unknown-linux-musl/release/over-there

运行说明

一个明显的例子是,您需要匹配服务器IPv4与客户端IPv4,以及服务器IPv6与客户端IPv6。

例如,以下在IPv6之间工作良好

# On your machine
over-there client '[1111:2222:3333:4444:5555:6:78:9]:60000' <some command>

# On 1111:2222:3333:4444:5555:6:78:9
over-there server '[::]:60000'

例如,以下在IPv4之间工作良好

# On your machine
over-there client '123.456.7.890:60000' <some command>

# On 123.456.7.890
over-there server '0.0.0.0:60000'

overthered

otd作为别名?

围绕overthere的守护进程包装器,用于运行服务以监听请求并执行它们。

overtherec

otc作为别名?

围绕overthere的客户端包装器,可以发送命令到远程守护进程以执行,并通过各种方式中继结果,如stdout或文件。

许可证

许可协议为以下之一

任选其一。

贡献

除非您明确声明,否则根据Apache-2.0许可证定义,您有意提交以包含在作品中的任何贡献,应按上述方式双许可,不附加任何额外条款或条件。

依赖项

约12MB
约199K SLoC