mirror of https://gerrit.osmocom.org/libtelnet
fix last commit
This commit is contained in:
parent
90e79da676
commit
7894384d70
|
@ -829,7 +829,14 @@ void telnet_send_data(telnet_t *telnet, const char *buffer,
|
||||||
_send(telnet, buffer + l, i - l);
|
_send(telnet, buffer + l, i - l);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* send sub-request */
|
/* send subnegotiation header */
|
||||||
|
void telnet_begin_subnegotiation(telnet_t *telnet, unsigned char telopt) {
|
||||||
|
const char sb[3] = { TELNET_IAC, TELNET_SB, telopt };
|
||||||
|
_send(telnet, sb, 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* send complete subnegotiation */
|
||||||
void telnet_send_subnegotiation(telnet_t *telnet, unsigned char telopt,
|
void telnet_send_subnegotiation(telnet_t *telnet, unsigned char telopt,
|
||||||
const char *buffer, size_t size) {
|
const char *buffer, size_t size) {
|
||||||
const char sb[3] = { TELNET_IAC, TELNET_SB, telopt };
|
const char sb[3] = { TELNET_IAC, TELNET_SB, telopt };
|
||||||
|
|
|
@ -209,7 +209,7 @@ extern void telnet_begin_subnegotiation(telnet_t *telnet,
|
||||||
|
|
||||||
/* send IAC SE */
|
/* send IAC SE */
|
||||||
#define telnet_finish_subnegotiation(telnet) \
|
#define telnet_finish_subnegotiation(telnet) \
|
||||||
telnet_command((telnet), TELNET_SE)
|
telnet_send_command((telnet), TELNET_SE)
|
||||||
|
|
||||||
/* shortcut for sending a complete subnegotiation buffer.
|
/* shortcut for sending a complete subnegotiation buffer.
|
||||||
* equivalent to:
|
* equivalent to:
|
||||||
|
|
Loading…
Reference in New Issue