summaryrefslogtreecommitdiff
path: root/indra/llmessage/lliosocket.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-06-29 21:20:30 -0400
committerOz Linden <oz@lindenlab.com>2011-06-29 21:20:30 -0400
commitb5001ff819f789e51929d4fe29db7fc05ddd4468 (patch)
treea204e55759d2da8f5ca0275d7fa8fc4fec075198 /indra/llmessage/lliosocket.h
parentcc73cf15e6c2a361df278cb0b66c4d68c6acfbcd (diff)
parentc91d6962337e3394038d72b173431dceffb44317 (diff)
merge changes for storm-1368
Diffstat (limited to 'indra/llmessage/lliosocket.h')
-rw-r--r--indra/llmessage/lliosocket.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/llmessage/lliosocket.h b/indra/llmessage/lliosocket.h
index 6806e5084a..e0f6c1e34d 100644
--- a/indra/llmessage/lliosocket.h
+++ b/indra/llmessage/lliosocket.h
@@ -153,9 +153,16 @@ protected:
LLSocket(apr_socket_t* socket, apr_pool_t* pool);
/**
- * @brief Set default socket options.
+ * @brief Set default socket options, with SO_NONBLOCK = 0 and a timeout in us.
+ * @param timeout Number of microseconds to wait on this socket. Any
+ * negative number means block-forever. TIMEOUT OF 0 IS NON-PORTABLE.
*/
- void setOptions();
+ void setBlocking(S32 timeout);
+
+ /**
+ * @brief Set default socket options, with SO_NONBLOCK = 1 and timeout = 0.
+ */
+ void setNonBlocking();
public:
/**