socket_is_writable
- Синтаксис
-
native socket_is_writable(_socket, _timeout = 100000);
Переменная | Описание |
---|---|
_socket |
Socket descriptor |
_timeout |
Amount of time to block the call waiting for the socket to be marked as writable or for the timeout to expire, in µSeconds (1 sec = 1000000 µsec) |
- Описание
- Checks if a socket is marked as writable.
- Пометка
-
Use this function to check if a nonblocking socket is ready to be used.
- Пометка
-
Set _timeout to 0 avoid blocking the call.
- Пометка
-
An UDP socket is always writable.
- Возвращает
- 1 if the socket is marked as writable 0 otherwise