The Servo Book - 0.0.1Concepts Read the complete protocol description for an in-depth look at all of the important concepts. Client: Frontend that contains different tooling panels (Inspector, Debugger, Console, ...) and sends requests being inspected by the client. Receives messages and delivers them to the appropiate actor so it can reply. Actor: Code on the server that can exchange messages with the client. Message: JSON packet that that is exchanged between the server and the client. Messages from the client must include a to field with the name of the actor they are directed to, and a type field specifying what sort of packet0 码力 | 107 页 | 2.48 MB | 22 小时前3
Rust 程序设计语言 简体中文版 1.85.0Protocol, HTTP)和 传输控制协议(Transmission Control Protocol,TCP)。这两者都是 请求 - 响应 (request-response)协议,也就是说,有 客户端(client)来初始化请求,并有 服务端 (server)监听请求并向客户端提供响应。请求与响应的内容由协议本身定义。 TCP 是一个底层协议,它描述了信息如何从一个 server 到另一个的细节,不过其并不指定信 读更多关于其他解决方案的内容并尝试实现它们;对于一个像 Rust 这样的底层语言,所有这 些方法都是可行的。 在开始之前,让我们讨论一下线程池应用看起来如何。当尝试设计代码时,首先编写客户端接 口(client interface)有助于指导代码设计。以期望的调用方式来构建 API 代码的结构,接着 在这个结构之内实现功能,而不是先实现功能再设计公有 API。 类似于第十二章项目中使用的测试驱动开发0 码力 | 562 页 | 3.23 MB | 1 月前3
共 2 条
- 1













