mirror of
https://github.com/xtaci/smux.git
synced 2024-04-21 10:51:48 +00:00
upd
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# smux
|
||||
smux
|
||||
simple multiplexing
|
||||
|
||||
# goals
|
||||
@@ -38,8 +38,14 @@ FRAMETYPE=GoAway
|
||||
| | |
|
||||
+---------------+---------------+
|
||||
|
||||
Stream.Write([]byte) --> Framer --> Qdisc.Enqueue() --> (goroutine: Session.xmit() { Qdisc.Dequeue() } --> conn.Write([]byte)
|
||||
Stream.Read([]byte) --> Stream.RxQueue <-- (goroutine: Session.recvLoop(conn))
|
||||
Stream.Write([]byte)
|
||||
--> Framer.split([]byte)
|
||||
--> Qdisc.Enqueue(Frame)
|
||||
--> (goroutine: Session.xmit() { Qdisc.Dequeue() }
|
||||
--> conn.Write(Framer.serialize())
|
||||
|
||||
Stream.Read([]byte)
|
||||
--> Stream.RxQueue <-- Framer.deserialize <-- (goroutine: Session.recvLoop(conn))
|
||||
```
|
||||
|
||||
# status
|
||||
|
||||
Reference in New Issue
Block a user