java - TCP 上的多个 channel ?

标签 java c tcp protocols

我想知道是否存在基于 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/

相关文章:

java - 托管 Bean 丢失导入语句

java - 为什么我们不能在 java 的普通方法中调用 this() 方法?

iphone - 如何使用 C API 使用 SQLite3 导入命令?

在 C 中使用 if/else 语句的命令行参数

c# - TCP 服务器一次只接受来自一台 iOS 设备的消息

java - A类主菜单扩展Applet

java - 康威生命游戏迭代不起作用

c - 在内存流上使用 ftell() 时的“正确”语义

c - 仍然使用 TCP_NODELAY 发送一条消息

c - Linux TCP/IP 诊断 C 程序中 TCP/IP read() 返回 0 的原因