uses client_write()

This commit is contained in:
Daniel Stenberg 2000-11-22 12:55:24 +00:00
parent 79beebdabe
commit 526eca191a
2 changed files with 6 additions and 7 deletions

View File

@ -134,8 +134,7 @@ static void * DynaGetFunction(char *name)
static int WriteProc(void *param, char *text, int len)
{
struct UrlData *data = (struct UrlData *)param;
data->fwrite(text, 1, strlen(text), data->out);
client_write(data, CLIENTWRITE_BODY, text, 0);
return 0;
}

View File

@ -713,8 +713,8 @@ void telrcv(struct UrlData *data,
{
break; /* Ignore \0 after CR */
}
data->fwrite((char *)&c, 1, 1, data->out);
client_write(data, CLIENTWRITE_BODY, (char *)&c, 1);
continue;
case TS_DATA:
@ -728,7 +728,7 @@ void telrcv(struct UrlData *data,
telrcv_state = TS_CR;
}
data->fwrite((char *)&c, 1, 1, data->out);
client_write(data, CLIENTWRITE_BODY, (char *)&c, 1);
continue;
case TS_IAC:
@ -752,8 +752,8 @@ void telrcv(struct UrlData *data,
telrcv_state = TS_SB;
continue;
case IAC:
data->fwrite((char *)&c, 1, 1, data->out);
break;
client_write(data, CLIENTWRITE_BODY, (char *)&c, 1);
break;
case DM:
case NOP:
case GA: