diff options
Diffstat (limited to 'nchan.ms')
-rw-r--r-- | nchan.ms | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -52,6 +52,9 @@ arrow from S3.n to S4.s | |||
52 | box invis "rcvd OCLOSE/" "-" with .w at last arrow.c | 52 | box invis "rcvd OCLOSE/" "-" with .w at last arrow.c |
53 | ellipse wid .9*ellipsewid ht .9*ellipseht at S4 | 53 | ellipse wid .9*ellipsewid ht .9*ellipseht at S4 |
54 | arrow "start" "" from S1.w+(-0.5,0) to S1.w | 54 | arrow "start" "" from S1.w+(-0.5,0) to S1.w |
55 | arrow from S2.ne to S4.sw | ||
56 | box invis "rcvd OCLOSE/ " with .e at last arrow.c | ||
57 | box invis " send IEOF" with .w at last arrow.c | ||
55 | .PE | 58 | .PE |
56 | .SH | 59 | .SH |
57 | Channel Output State Diagram | 60 | Channel Output State Diagram |
@@ -76,7 +79,7 @@ arrow "start" "" from S1.w+(-0.5,0) to S1.w | |||
76 | Notes | 79 | Notes |
77 | .PP | 80 | .PP |
78 | The input buffer is filled with data from the socket | 81 | The input buffer is filled with data from the socket |
79 | (the socket represents the local comsumer/producer of the | 82 | (the socket represents the local consumer/producer of the |
80 | forwarded channel). | 83 | forwarded channel). |
81 | The data is then sent over the INPUT-end (transmit-end) of the channel to the | 84 | The data is then sent over the INPUT-end (transmit-end) of the channel to the |
82 | remote peer. | 85 | remote peer. |
@@ -85,7 +88,7 @@ saved in the output buffer and written to the socket. | |||
85 | .PP | 88 | .PP |
86 | If the local protocol instance has forwarded all data on the | 89 | If the local protocol instance has forwarded all data on the |
87 | INPUT-end of the channel, it sends an IEOF message to the peer. | 90 | INPUT-end of the channel, it sends an IEOF message to the peer. |
88 | If the peer receives the IEOF and has comsumed all | 91 | If the peer receives the IEOF and has consumed all |
89 | data he replies with an OCLOSE. | 92 | data he replies with an OCLOSE. |
90 | When the local instance receives the OCLOSE | 93 | When the local instance receives the OCLOSE |
91 | he considers the INPUT-half of the channel closed. | 94 | he considers the INPUT-half of the channel closed. |
@@ -94,6 +97,6 @@ The peer has his OUTOUT-half closed. | |||
94 | A channel can be deallocated by a protocol instance | 97 | A channel can be deallocated by a protocol instance |
95 | if both the INPUT- and the OUTOUT-half on his | 98 | if both the INPUT- and the OUTOUT-half on his |
96 | side of the channel are closed. | 99 | side of the channel are closed. |
97 | Note that when an instance is unable to comsume the | 100 | Note that when an instance is unable to consume the |
98 | received data, he is permitted to send an OCLOSE | 101 | received data, he is permitted to send an OCLOSE |
99 | before the matching IEOF is received. | 102 | before the matching IEOF is received. |