trywritef — Write formatted data for an event
int **trywritef** ( | event, | |
| | buffer, | |
| | ...
); | |
Write formatted data for an event.
This function assumes that the event closure is an “accept_construct”.
All events are assumed to be non-blocking, so the write semantics are non-blocking.
A sample call:
i = trywritef(event, "250 OK\r\n");
This function assumes that the
buffer is a maximum of
The string to write. This may be a format string.
The variable argument(s).
This function returns
1 on success and
0 on failure.
It is only legal to call this function in the