i have a question. three senders are attached with one receiver. The sender A has high priority 1 The sender B has Medium priority 0.6 The sender c has low priority 0.2 i want to transfer these priority to receiver side. how i can, if my work is based on TCP layer?
答案 0 :(得分:0)
开发一个通过TCP链路传递优先级的协议。它可以像文本一样简单,例如" 0.2",带有终止换行符或零字节。
在发送方和接收方都实现协议,因此接收方知道优先级。
在接收器中,使用您认为合适的优先级。例如,如果准备好读取多个连接,则可以从优先级最高的连接读取。