update
authorPekka Riikonen <priikone@silcnet.org>
Fri, 16 Feb 2001 10:43:38 +0000 (10:43 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 16 Feb 2001 10:43:38 +0000 (10:43 +0000)
lib/silccore/silcsockconn.c

index 4f5e60d23bc6fa83e8781617fb658d460f5f846c..a701da5c5fef84e7855804ae6da22987f84efd6c 100644 (file)
@@ -79,7 +79,12 @@ SILC_TASK_CALLBACK(silc_socket_heartbeat)
 }
 
 /* Sets the heartbeat timeout and prepares the socket for performing
-   heartbeat in `heartbeat' intervals (seconds). */
+   heartbeat in `heartbeat' intervals (seconds). The `hb_context' is
+   allocated by the application and will be sent as argument to the
+   `hb_callback' function that is called when the `heartbeat' timeout
+   expires.  The callback `hb_context' won't be touched by the library
+   but will be freed automatically when calling silc_socket_free.  The
+   `timeout_queue' is the application's scheduler timeout queue. */
 
 void silc_socket_set_heartbeat(SilcSocketConnection sock, 
                               unsigned long heartbeat,