aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Middleditch <sean@mojodo.com>2009-11-03 18:57:15 -0800
committerSean Middleditch <sean@mojodo.com>2009-11-03 18:57:15 -0800
commit65a53b00103618c8bffd2fe69764ffd4b105770a (patch)
tree010b492d1b9efdf1fbb1eb6aa5a5df4b0b32299d
parent0457afb6a38ad49b1670cfb056a90488d6f4267a (diff)
telnet_begin_sb and telnet_finish_sb functions
-rw-r--r--telnet_begin_sb.322
-rw-r--r--telnet_finish_sb.320
2 files changed, 42 insertions, 0 deletions
diff --git a/telnet_begin_sb.3 b/telnet_begin_sb.3
new file mode 100644
index 0000000..d8c8d36
--- /dev/null
+++ b/telnet_begin_sb.3
@@ -0,0 +1,22 @@
+.TH telnet_begin_sb 3 LIBTELNET "" "TELNET Library"
+
+.SH NAME
+\fBtelnet_begin_sb\fP - begin a TELNET sub-negotiation command
+
+.SH SYNOPSIS
+.PP
+\fB#include <libtelnet.h>\fP
+.sp
+.B "void telnet_begin_sb(telnet_t *\fBtelnet\fR, unsigned char \fBopt\fR);"
+
+.SH DESCRIPTION
+.PP
+The \fBtelnet_begin_sb\fR function sends the initial TELNET byte sequence to begin a TELNET sub-negotiation command. All data sent over the connecton following this call will be part of the sub-negotiation comman data. A call to \fBtelnet_finish_sb\fR MUST be made to complete the sub-negotiation.
+
+The parameter \fItelnet\fP is a state tracker instance created by a prior call to \fBtelnet_init\fP.
+
+The parameter \fIopt\fP is the TELNET option code for the sub-negotiation option being started.
+
+.SH SEE ALSO
+.PP
+\fBlibtelnet\fR(3), \fBtelnet_send\fR(3), \fBtelnet_finish_sb\fR(3)
diff --git a/telnet_finish_sb.3 b/telnet_finish_sb.3
new file mode 100644
index 0000000..263ab2b
--- /dev/null
+++ b/telnet_finish_sb.3
@@ -0,0 +1,20 @@
+.TH telnet_finish_sb 3 LIBTELNET "" "TELNET Library"
+
+.SH NAME
+\fBtelnet_finish_sb\fP - finish a TELNET sub-negotiation command
+
+.SH SYNOPSIS
+.PP
+\fB#include <libtelnet.h>\fP
+.sp
+.B "void telnet_finish_sb(telnet_t *\fBtelnet\fR);"
+
+.SH DESCRIPTION
+.PP
+The \fBtelnet_finish_sb\fR function sends the TELNET command to complete a sub-negotiation sequence. This must be called after a call to \fBtelnet_begin_sb\fR to complete a sub-negotiation.
+
+The parameter \fItelnet\fP is a state tracker instance created by a prior call to \fBtelnet_init\fP.
+
+.SH SEE ALSO
+.PP
+\fBlibtelnet\fR(3), \fBtelnet_send\fR(3), \fBtelnet_begin_sb\fR(3)