static void tcp_chr_telnet_init(QIOChannel *ioc)

{

    char buf[3];

    /* Send the telnet negotion to put telnet in binary, no echo, single char mode */

    IACSET(buf, 0xff, 0xfb, 0x01);  /* IAC WILL ECHO */

    qio_channel_write(ioc, buf, 3, NULL);

    IACSET(buf, 0xff, 0xfb, 0x03);  /* IAC WILL Suppress go ahead */

    qio_channel_write(ioc, buf, 3, NULL);

    IACSET(buf, 0xff, 0xfb, 0x00);  /* IAC WILL Binary */

    qio_channel_write(ioc, buf, 3, NULL);

    IACSET(buf, 0xff, 0xfd, 0x00);  /* IAC DO Binary */

    qio_channel_write(ioc, buf, 3, NULL);

}

static void tcp_chr_telnet_init(QIOChannel *ioc)

{

    char buf[3];

    

    IACSET(buf, 0xff, 0xfb, 0x01);  

    qio_channel_write(ioc, buf, 3, NULL);

    IACSET(buf, 0xff, 0xfb, 0x03);  

    qio_channel_write(ioc, buf, 3, NULL);

    IACSET(buf, 0xff, 0xfb, 0x00);  

    qio_channel_write(ioc, buf, 3, NULL);

    IACSET(buf, 0xff, 0xfd, 0x00);  

    qio_channel_write(ioc, buf, 3, NULL);

}

static void FUNC_0(QIOChannel *VAR_0)

{

    char VAR_1[3];

    

    IACSET(VAR_1, 0xff, 0xfb, 0x01);  

    qio_channel_write(VAR_0, VAR_1, 3, NULL);

    IACSET(VAR_1, 0xff, 0xfb, 0x03);  

    qio_channel_write(VAR_0, VAR_1, 3, NULL);

    IACSET(VAR_1, 0xff, 0xfb, 0x00);  

    qio_channel_write(VAR_0, VAR_1, 3, NULL);

    IACSET(VAR_1, 0xff, 0xfd, 0x00);  

    qio_channel_write(VAR_0, VAR_1, 3, NULL);

}

static void FUNC_0(QIOChannel *VAR_0)
{ char VAR_1[3]; IACSET(VAR_1, 0xff, 0xfb, 0x01); qio_channel_write(VAR_0, VAR_1, 3, NULL); IACSET(VAR_1, 0xff, 0xfb, 0x03); qio_channel_write(VAR_0, VAR_1, 3, NULL); IACSET(VAR_1, 0xff, 0xfb, 0x00); qio_channel_write(VAR_0, VAR_1, 3, NULL); IACSET(VAR_1, 0xff, 0xfd, 0x00); qio_channel_write(VAR_0, VAR_1, 3, NULL); }