我想知道是否存在基于 TCP/IP 的现有通信协议(protocol)来处理多个 channel (每个 channel 都有输入+输出流)。
语言:
- Java
- 用于嵌入式设备的 C,最好基于 lwIP
特点:
多个 channel ,每个 channel 都有一个输入和输出流。
可以刷新每个输出流以确保发送所有内容。
如果一个流阻塞(接收器未读取),其他流仍会继续。
可配置的缓冲支持 (例如 channel 1:100Kb, channel 2:2000kB), 就像如果接收者停止读取一个流,发送者上的写入 一侧被挡住。
可作为开源实现并用于商业用途。
是否已有某些内容?
谢谢 弗兰克
最佳答案
当然,有一个名为 BEEP 的协议(protocol)它提供了其中一些功能。不知道有没有人真正用过。
BEEP is not a protocol for sending and receiving data directly. Rather, it allows you to define your application protocol on top of it, reusing several mechanisms such as: asynchronous communications, transport layer security, peer authentication, channel multiplexing on the same connection, message framing, channel bandwidth management, and many more interesting network features.
关于java - TCP 上的多个 channel ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26107240/