Beispiel #1
0
void free_all()
{
    int i = 0;

    for (i = MAX_SOCKS - 1; i > 0; i--)
        if (s[i].sock >= 0)
            sockets_del(i);
    free_all_streams();
    free_all_adapters();
}
Beispiel #2
0
void free_all()
{
	int i = 0;

	for (i = MAX_SOCKS - 1; i > 0; i--)
	{
		if (s[i] && s[i]->enabled)
			sockets_del(i);
		if (s[i])
			free(s[i]);
		s[i] = NULL;
	}
	free_all_streams();
	free_all_adapters();
}