io_trywritetimeout(3diet)
NAME
io_trywritetimeout - write to a descriptor without blocking
SYNTAX
#include <io.h>
int io_trywritetimeout(int64 fd,const char* buf,int64 len);
DESCRIPTION
io_trywritetimeout is identical to io_trywrite, with the following
exception: if
- o io_trywrite returns -1 (the descriptor is not ready for writing),
- and
- o the descriptor has a timeout, and
- o the write attempt was after the descriptor's timeout,
- then io_trywritetimeout instead returns -2, with errno set to ETIMEDOUT.