⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 telnet.1.txt

📁 经典的unix下telnet的c代码
💻 TXT
📖 第 1 页 / 共 3 页
字号:
and the.Ic quitcharacter is typed, a.Dv TELNET BRKsequence (see.Ic send.Ic brkabove)is sent to the remote host.The initial value for the.Ic quitcharacter is taken to bethe terminal's.Ic quitcharacter..It Ic reprintIf.Nmis operating in.Dv LINEMODEor ``old line by line'' mode, then this character is taken tobe the terminal's.Ic reprintcharacter.The initial value for the.Ic reprintcharacter is taken to bethe terminal's.Ic reprintcharacter..It Ic rloginThis is the rlogin escape character.If set, the normal.Tn TELNETescape character is ignored unless it ispreceded by this character at the beginning of a line.This character, at the beginning of a line, followed bya "." closes the connection; when followed by a ^Z itsuspends the.Nmcommand.The initial state is todisable the.Ic rloginescape character..It Ic startIf the.Dv TELNET TOGGLE-FLOW-CONTROLoption has been enabled,then this character is taken tobe the terminal's.Ic startcharacter.The initial value for the.Ic startcharacter is taken to bethe terminal's.Ic startcharacter..It Ic stopIf the.Dv TELNET TOGGLE-FLOW-CONTROLoption has been enabled,then this character is taken tobe the terminal's.Ic stopcharacter.The initial value for the.Ic stopcharacter is taken to bethe terminal's.Ic stopcharacter..It Ic suspIf.Nmis in.Ic localcharsmode, or.Dv LINEMODEis enabled, and the.Ic suspendcharacter is typed, a.Dv TELNET SUSPsequence (see.Ic send.Ic suspabove)is sent to the remote host.The initial value for the.Ic suspendcharacter is taken to bethe terminal's.Ic suspendcharacter..It Ic tracefileThis is the file to which the output, caused by.Ic netdataor.Ic optiontracing being.Dv TRUE ,will be written.If it is set to.Dq Fl ,then tracing information will be written to standard output (the default)..It Ic worderaseIf.Nmis operating in.Dv LINEMODEor ``old line by line'' mode, then this character is taken tobe the terminal's.Ic worderasecharacter.The initial value for the.Ic worderasecharacter is taken to bethe terminal's.Ic worderasecharacter..It Ic \&?Displays the legal.Ic set.Pq Ic unsetcommands..El.It Ic skey Ar sequence challengeThe.Ic skeycommand computes a response to the S/Key challenge.See.Xr skey 1for more information on the S/Key system..It Ic slc Ar stateThe.Ic slccommand (Set Local Characters) is used to setor change the state of the specialcharacters when the.Dv TELNET LINEMODEoption hasbeen enabled.Special characters are characters that get mapped to.Tn TELNETcommands sequences (like.Ic ipor.Ic quit )or line editing characters (like.Ic eraseand.Ic kill ) .By default, the local special characters are exported..Bl -tag -width Fl.It Ic checkVerify the current settings for the current special characters.The remote side is requested to send all the current specialcharacter settings, and if there are any discrepancies withthe local side, the local side will switch to the remote value..It Ic exportSwitch to the local defaults for the special characters.The local default characters are those of the local terminal atthe time when.Nmwas started..It Ic importSwitch to the remote defaults for the special characters.The remote default characters are those of the remote systemat the time when the.Tn TELNETconnection was established..It Ic \&?Prints out help information for the.Ic slccommand..El.It Ic statusShow the current status of.Nm telnet .This includes the peer one is connected to, as wellas the current mode..It Ic toggle Ar arguments Op Ar ...Toggle (between.Dv TRUEand.Dv FALSE )various flags that control how.Nmresponds to events.These flags may be set explicitly to.Dv TRUEor.Dv FALSEusing the.Ic setand.Ic unsetcommands listed above.More than one argument may be specified.The state of these flags may be interrogated with the.Ic displaycommand.Valid arguments are:.Bl -tag -width Ar.It Ic authdebugTurns on debugging information for the authentication code..It Ic autoflushIf.Ic autoflushand.Ic localcharsare both.Dv TRUE ,then when the.Ic aoor.Ic quitcharacters are recognized (and transformed into.Tn TELNETsequences; see.Ic setabove for details),.Nmrefuses to display any data on the user's terminaluntil the remote system acknowledges (via a.Dv TELNET TIMING MARKoption)that it has processed those.Tn TELNETsequences.The initial value for this toggle is.Dv TRUEif the terminal user had notdone an "stty noflsh", otherwise.Dv FALSE(see.Xr stty 1 ) ..It Ic autodecryptWhen the.Dv TELNET ENCRYPToption is negotiated, bydefault the actual encryption (decryption) of the datastream does not start automatically.The.Ic autoencrypt.Pq Ic autodecryptcommand states that encryption of theoutput (input) stream should be enabled as soon aspossible..Pp.It Ic autologinIf the remote side supports the.Dv TELNET AUTHENTICATIONoption.Tn TELNETattempts to use it to perform automatic authentication.If the.Dv AUTHENTICATIONoption is not supported, the user's loginname is propagated through the.Dv TELNET ENVIRONoption.This command is the same as specifying.Ar aoption on the.Ic opencommand..It Ic autosynchIf.Ic autosynchand.Ic localcharsare both.Dv TRUE ,then when either the.Ic intror.Ic quitcharacter is typed (see.Ic setabove for descriptions of the.Ic intrand.Ic quitcharacters), the resulting.Tn TELNETsequence sent is followed by the.Dv TELNET SYNCHsequence.This procedure.Em shouldcause the remote system to begin throwing away all previouslytyped input until both of the.Tn TELNETsequences have been read and acted upon.The initial value of this toggle is.Dv FALSE ..It Ic binaryEnable or disable the.Dv TELNET BINARYoption on both input and output..It Ic inbinaryEnable or disable the.Dv TELNET BINARYoption on input..It Ic outbinaryEnable or disable the.Dv TELNET BINARYoption on output..It Ic crlfIf this is.Dv TRUE ,then carriage returns will be sent as.Li <CR><LF> .If this is.Dv FALSE ,then carriage returns will be sent as.Li <CR><NUL> .The initial value for this toggle is.Dv FALSE ..It Ic crmodToggle carriage return mode.When this mode is enabled, most carriage return characters received fromthe remote host will be mapped into a carriage return followed bya line feed.This mode does not affect those characters typed by the user, onlythose received from the remote host.This mode is not very useful unless the remote hostonly sends carriage return, but never line feeds.The initial value for this toggle is.Dv FALSE ..It Ic debugToggles socket level debugging (useful only to the superuser).The initial value for this toggle is.Dv FALSE ..It Ic encdebugTurns on debugging information for the encryption code..It Ic localcharsIf this is.Dv TRUE ,then the.Ic flush ,.Ic interrupt ,.Ic quit ,.Ic erase ,and.Ic killcharacters (see.Ic setabove) are recognized locally, and transformed into (hopefully) appropriate.Tn TELNETcontrol sequences(respectively.Ic ao ,.Ic ip ,.Ic brk ,.Ic ec ,and.Ic el ;see.Ic sendabove).The initial value for this toggle is.Dv TRUEin ``old line by line'' mode,and.Dv FALSEin ``character at a time'' mode.When the.Dv LINEMODEoption is enabled, the value of.Ic localcharsis ignored, and assumed to always be.Dv TRUE .If.Dv LINEMODEhas ever been enabled, then.Ic quitis sent as.Ic abort ,and.Ic eofand.Ic suspendare sent as.Ic eofand.Ic susp(see.Ic sendabove)..It Ic netdataToggles the display of all network data (in hexadecimal format).The initial value for this toggle is.Dv FALSE ..It Ic optionsToggles the display of some internal.Nmprotocol processing (having to do with.Tn TELNEToptions).The initial value for this toggle is.Dv FALSE ..It Ic prettydumpWhen the.Ic netdatatoggle is enabled, if.Ic prettydumpis enabled the output from the.Ic netdatacommand will be formatted in a more user readable format.Spaces are put between each character in the output, and thebeginning of any.Tn TELNETescape sequence is preceded by a '*' to aid in locating them..It Ic skiprcWhen the skiprc toggle is.Dv TRUE ,.Tn TELNETskips the reading of the.Pa \&.telnetrcfile in the user's homedirectory when connections are opened.The initial value for this toggle is.Dv FALSE ..It Ic termdataToggles the display of all terminal data (in hexadecimal format).The initial value for this toggle is.Dv FALSE ..It Ic verbose_encryptWhen the.Ic verbose_encrypttoggle is.Dv TRUE ,.Nmprints out a message each time encryption is enabled ordisabled.The initial value for this toggle is.Dv FALSE ..It Ic \&?Displays the legal.Ic togglecommands..El.It Ic zSuspend.Nm telnet .This command only works when the user is using the.Xr csh 1 ..It Ic \&! Op Ar commandExecute a single command in a subshell on the localsystem.If.Ar commandis omitted, then an interactivesubshell is invoked..It Ic \&? Op Ar commandGet help.With no arguments,.Nmprints a help summary.If a command is specified,.Nmwill print the help information for just that command..El.Sh ENVIRONMENT.Nmuses at least the.Ev HOME ,.Ev SHELL ,.Ev DISPLAY ,and.Ev TERMenvironment variables.Other environment variables may be propagatedto the other side via the.Dv TELNET ENVIRONoption..Sh FILES.Bl -tag -width ~/.telnetrc -compact.It Pa ~/.telnetrcuser customized telnet startup values.El.Sh HISTORYThe.Nmcommand appeared in.Bx 4.2 ..Sh NOTESOn some remote systems, echo has to be turned off manually when in``old line by line'' mode..PpIn ``old line by line'' mode or.Dv LINEMODEthe terminal's.Ic eofcharacter is only recognized (and sent to the remote system)when it is the first character on a line..PpSource routing is not supported yet for IPv6.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -