Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
c8f5d9df
Commit
c8f5d9df
authored
Jan 09, 2017
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
io: update documentation for io_close.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
73c02ec4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
ccan/io/io.h
ccan/io/io.h
+9
-7
No files found.
ccan/io/io.h
View file @
c8f5d9df
...
...
@@ -595,14 +595,16 @@ struct io_plan *io_never(struct io_conn *conn, void *unused);
/* FIXME: io_recvfrom/io_sendto */
/**
* io_close -
plan to
close a connection.
* io_close - close a connection.
* @conn: the connection to close.
*
* On return to io_loop, the connection will be closed. It doesn't have
* to be the current connection and it doesn't need to be idle. No more
* IO or callbacks will occur.
* The connection is immediately freed: it doesn't have to be the
* current connection and it doesn't need to be idle. No more IO or
* callbacks will occur, but if a function was added by io_set_finish()
* it will be called with the current errno preserved.
*
* You can close a connection twice without harmful effects.
* This is equivalent to tal_free(io_conn), except it returns an io_plan
* for use in an io callback.
*
* Example:
* static struct io_plan *close_on_timeout(struct io_conn *conn, const char *msg)
...
...
@@ -617,8 +619,8 @@ struct io_plan *io_close(struct io_conn *conn);
* io_close_cb - helper callback to close a connection.
* @conn: the connection.
*
* This
schedules a connection to be closed; designed to be used as
*
a callback
function.
* This
is closes a connection; designed to be used as a callback
* function.
*
* Example:
* #define close_on_timeout io_close_cb
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment