Extract telnet functions into a separate header
This commit is contained in:
parent
f1372827c1
commit
c59b2138f4
4 changed files with 110 additions and 108 deletions
|
@ -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() */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue