Accept PONG

This commit is contained in:
Michiel Broek 2005-04-18 10:42:00 +00:00
parent f1f510eb34
commit 66afcb540b

View File

@ -533,6 +533,10 @@ void receiver(struct servent *se)
} else if (! strcmp(command, (char *)"PING")) {
sprintf(csbuf, "PONG\r\n");
send_msg(tnsl->socket, tnsl->servaddr_in, tnsl->server, csbuf);
} else if (! strcmp(command, (char *)"PONG")) {
/*
* Just accept
*/
} else if (atoi(command)) {
Syslog('r', "IBC: Got error %d", atoi(command));
} else if (tnsl->state == NCS_CONNECT) {