1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 01:43:01 +01:00

Small improvement to DHT. Useless file removed. Small fix to toxic.

This commit is contained in:
irungentoo 2013-08-15 14:24:32 -04:00
parent 662b1f2bac
commit a59f4867ee

View File

@ -43,13 +43,13 @@ static void dhtstatus_onDraw(ToxWindow *self)
uint32_t i, j; uint32_t i, j;
ipbuf ipbuf; ipbuf ipbuf;
wprintw(self->window,"\n%llu ______________________ CLOSE LIST ________________________ ___ IP ADDR ___ _PRT_ LST PNG ____ SELF ____ _PRT_ LST\n\n", now); wprintw(self->window,"\n%llu ______________________ CLOSE LIST ________________________ ___ IP ADDR ___ _PRT_ LST PNG ____ SELF ____ _PRT_ LST\n\n", now);
for(i = 0; i < CLIENT_ID_SIZE; i++) { for(i = 0; i < 32; i++) { /*Number of nodes in closelist*/
Client_data * client = close_clientlist + i; Client_data * client = close_clientlist + i;
if (i == num_selected) wattron(self->window, COLOR_PAIR(3)); if (i == num_selected) wattron(self->window, COLOR_PAIR(3));
wprintw(self->window,"[%02i] ", i); wprintw(self->window,"[%02i] ", i);
uint16_t port = ntohs(client->ip_port.port); uint16_t port = ntohs(client->ip_port.port);
if(port) { if(port) {
for(j = 0; j < 32; j++) for(j = 0; j < CLIENT_ID_SIZE; j++)
wprintw(self->window, "%02hhx", client->client_id[j]); wprintw(self->window, "%02hhx", client->client_id[j]);
printip(ipbuf, client->ip_port.ip); printip(ipbuf, client->ip_port.ip);