mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
uses client_write()
This commit is contained in:
parent
79beebdabe
commit
526eca191a
@ -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;
|
||||
}
|
||||
|
||||
|
10
lib/telnet.c
10
lib/telnet.c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user