case SocketOptions.SO_TIMEOUT: int millis = (Integer) value; StructTimeval tv = StructTimeval.fromMillis(millis); Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); return;
/** * Note write timeouts are not part of the javax.net.ssl.SSLSocket API */ public void setSoWriteTimeout(int writeTimeoutMilliseconds) throws SocketException { this.writeTimeoutMilliseconds = writeTimeoutMilliseconds; StructTimeval tv = StructTimeval.fromMillis(writeTimeoutMilliseconds); try { Libcore.os.setsockoptTimeval(getFileDescriptor$(), SOL_SOCKET, SO_SNDTIMEO, tv); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsSocketException(); } }
/** * Note write timeouts are not part of the javax.net.ssl.SSLSocket API */ public void setSoWriteTimeout(int writeTimeoutMilliseconds) throws SocketException { this.writeTimeoutMilliseconds = writeTimeoutMilliseconds; StructTimeval tv = StructTimeval.fromMillis(writeTimeoutMilliseconds); try { Libcore.os.setsockoptTimeval(getFileDescriptor$(), SOL_SOCKET, SO_SNDTIMEO, tv); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsSocketException(); } }
case SocketOptions.SO_TIMEOUT: int millis = (Integer) value; StructTimeval tv = StructTimeval.fromMillis(millis); Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); return;
case SocketOptions.SO_TIMEOUT: int millis = (Integer) value; StructTimeval tv = StructTimeval.fromMillis(millis); Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); return;
case SocketOptions.SO_TIMEOUT: int millis = (Integer) value; StructTimeval tv = StructTimeval.fromMillis(millis); Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); return;
case SocketOptions.SO_TIMEOUT: int millis = (Integer) value; StructTimeval tv = StructTimeval.fromMillis(millis); Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); return;
case SocketOptions.SO_TIMEOUT: int millis = (Integer) value; StructTimeval tv = StructTimeval.fromMillis(millis); Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); return;
case SocketOptions.SO_TIMEOUT: int millis = (Integer) value; StructTimeval tv = StructTimeval.fromMillis(millis); Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); return;