Lines Matching defs:timeoutMs
90 * Wait up to |timeoutMs| (or until underlying socket error) for a
93 public ByteBuffer recvMessage(long timeoutMs) throws ErrnoException, InterruptedIOException {
94 return recvMessage(DEFAULT_RECV_BUFSIZE, timeoutMs);
97 private void checkTimeout(long timeoutMs) {
98 if (timeoutMs < 0) {
104 * Wait up to |timeoutMs| (or until underlying socket error) for a
109 public ByteBuffer recvMessage(int bufsize, long timeoutMs)
111 checkTimeout(timeoutMs);
114 if (mLastRecvTimeoutMs != timeoutMs) {
117 StructTimeval.fromMillis(timeoutMs));
118 mLastRecvTimeoutMs = timeoutMs;
145 * waiting at most |timeoutMs| milliseconds for the send to complete.
149 public boolean sendMessage(byte[] bytes, int offset, int count, long timeoutMs)
151 checkTimeout(timeoutMs);
154 if (mLastSendTimeoutMs != timeoutMs) {
157 StructTimeval.fromMillis(timeoutMs));
158 mLastSendTimeoutMs = timeoutMs;