anymore.
in task callback functions. Affected files are
lib/silcutil/silcutil.[ch].
+ * The hb_context in SilcSocketConnection is not freed
+ automatically anymore (application must free it). Freeing
+ it automatic is inconsistent. Affected files are
+ lib/silcutil/silcsockconn.[ch].
+
Sun Sep 15 22:16:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
* Added support for removing explicitly added client connections
newsocket->user_data = (void *)server->id_entry;
silc_schedule_task_add(server->schedule, sock_list[sock],
- silc_server_accept_new_connection,
- (void *)server, 0, 0,
- SILC_TASK_FD,
- SILC_TASK_PRI_NORMAL);
+ silc_server_accept_new_connection,
+ (void *)server, 0, 0,
+ SILC_TASK_FD,
+ SILC_TASK_PRI_NORMAL);
}
return TRUE;
SilcServerConfigDeny *deny;
int port;
- context = (void *)server;
-
/* Check whether we could resolve both IP and FQDN. */
if (!sock->ip || (!strcmp(sock->ip, sock->hostname) &&
server->config->require_reverse_lookup)) {
However, this doesn't set the scheduler for outgoing traffic, it
will be set separately by calling SILC_SET_CONNECTION_FOR_OUTPUT,
later when outgoing data is available. */
+ context = (void *)server;
SILC_REGISTER_CONNECTION_FOR_IO(sock->sock);
SILC_LOG_INFO(("Incoming connection %s (%s)", sock->hostname,
silc_buffer_free(sock->outbuf);
if (sock->hb) {
silc_schedule_task_del(sock->hb->schedule, sock->hb->hb_task);
- silc_free(sock->hb->hb_context);
silc_free(sock->hb);
}
{
if (sock->hb) {
silc_schedule_task_del(schedule, sock->hb->hb_task);
- silc_free(sock->hb->hb_context);
silc_free(sock->hb);
}
* 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
- * `schedule' is the application's scheduler.
+ * but and must be freed by the application. The `schedule' is the
+ * application's scheduler.
*
***/
void silc_socket_set_heartbeat(SilcSocketConnection sock,