aboutsummaryrefslogtreecommitdiffstats
path: root/android/async-socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'android/async-socket.h')
-rw-r--r--android/async-socket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/android/async-socket.h b/android/async-socket.h
index 661fae5..503907b 100644
--- a/android/async-socket.h
+++ b/android/async-socket.h
@@ -137,13 +137,16 @@ extern int async_socket_io_is_read(const AsyncSocketIO* asio);
* reconnect_to - Timeout before trying to reconnect after disconnection.
* connect_cb - Client callback to monitor connection state (must not be NULL).
* client_opaque - An opaque pointer to associate with the socket client.
+ * looper - An optional (can be NULL) I/O looper to use for socket I/O. If
+ * this parameter is NULL, the socket will create its own looper.
* Return:
* Initialized AsyncSocket instance on success, or NULL on failure.
*/
extern AsyncSocket* async_socket_new(int port,
int reconnect_to,
on_as_connection_cb connect_cb,
- void* client_opaque);
+ void* client_opaque,
+ Looper* looper);
/* References AsyncSocket object.
* Param: