aboutsummaryrefslogtreecommitdiff
path: root/src/or/channel.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2012-10-09 11:38:15 -0700
committerAndrea Shepard <andrea@torproject.org>2012-10-09 23:19:53 -0700
commitf00b44ef8c82eb52fad19fd2218f485f1c5aceca (patch)
treeff90820a67316f89448367e4f0309c142fda0b75 /src/or/channel.c
parent1c3362dcdcf39f4b9da8c71567412349d111d08f (diff)
downloadtor-f00b44ef8c82eb52fad19fd2218f485f1c5aceca.tar.gz
tor-f00b44ef8c82eb52fad19fd2218f485f1c5aceca.zip
Improve comments on channel_write_*()
Diffstat (limited to 'src/or/channel.c')
-rw-r--r--src/or/channel.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index e87f4de1aa..334f843ebd 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -1723,7 +1723,9 @@ channel_write_cell_queue_entry(channel_t *chan, cell_queue_entry_t *q)
* Write a cell to a channel
*
* Write a fixed-length cell to a channel using the write_cell() method.
- * This is equivalent to the pre-channels connection_or_write_cell_to_buf().
+ * This is equivalent to the pre-channels connection_or_write_cell_to_buf();
+ * it is called by the transport-independent code to deliver a cell to a
+ * channel for transmission.
*/
void
@@ -1747,7 +1749,9 @@ channel_write_cell(channel_t *chan, cell_t *cell)
/**
* Write a packed cell to a channel
*
- * Write a packed cell to a channel using the write_cell() method.
+ * Write a packed cell to a channel using the write_cell() method. This is
+ * called by the transport-independent code to deliver a packed cell to a
+ * channel for transmission.
*/
void
@@ -1774,7 +1778,8 @@ channel_write_packed_cell(channel_t *chan, packed_cell_t *packed_cell)
*
* Write a variable-length cell to a channel using the write_cell() method.
* This is equivalent to the pre-channels
- * connection_or_write_var_cell_to_buf().
+ * connection_or_write_var_cell_to_buf(); it's called by the transport-
+ * independent code to deliver a var_cell to a channel for transmission.
*/
void