.\" Man page generated from reStructuredText. . .TH "WSLAY_EVENT_WANT_WRITE" "3" "Jun 20, 2020" "1.1.1" "wslay" .SH NAME wslay_event_want_write \- Tell whether the library wants to send more data . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp #include .INDENT 0.0 .TP .B int wslay_event_want_write(wslay_event_context_ptr\fI\ ctx\fP) .UNINDENT .SH DESCRIPTION .sp \fI\%wslay_event_want_write()\fP is used to know whether the library want to send more data to peer. .sp This is useful to decide whether to wait for write event in I/O event notification functions such as \fBselect(2)\fP and \fBpoll(2)\fP\&. .SH RETURN VALUE .sp \fI\%wslay_event_want_write()\fP returns 1 if the library want to send more data to peer, or returns 0. .SH SEE ALSO .sp \fBwslay_event_want_read()\fP, \fBwslay_event_shutdown_write()\fP, \fBwslay_event_get_write_enabled()\fP .SH AUTHOR Tatsuhiro Tsujikawa .SH COPYRIGHT 2012, 2015, Tatsuhiro Tsujikawa .\" Generated by docutils manpage writer. .