Extract telnet functions into a separate header

This commit is contained in:
Igor Socec 2016-11-18 22:42:29 +01:00
parent f1372827c1
commit c59b2138f4
4 changed files with 110 additions and 108 deletions

View file

@ -193,7 +193,9 @@ int main(int argc, char *argv[]) {
continue;
}
/* put client in "character" mode */
telnet_set_character_mode(&client);
char msg[TELNET_MSG_SIZE_CHARMODE];
telnet_message_set_character_mode(msg);
client_write(&client, msg, TELNET_MSG_SIZE_CHARMODE);
}
/* setup parameters for select() */