RFC2877 - 5250 Telnet Enhancements(2)

时间:2005-02-16 来源: 作者: 点击:
the client for a print job, and indicates to the printer there is no more data. The null data byte '00'X is optional, and in some cases may be omitted (in particular, this scenario occurs in DBCS pri
  
the client for a print job, and indicates to the printer there is no
more data. The null data byte '00'X is optional, and in some cases
may be omitted (in particular, this scenario occurs in DBCS print
streams).

This example would normally follow any number of print records, such
as the example in Figure 4. This indicates successful completion of
a print job. The client normally responds to this null print record
with another print complete record, such as in Figure 5.

+------------------------------------------------------------------+
| +-- Length of structure (LLLL) |
| | +-- GDS identifier |
| | | +-- Data flow record |
| | | | +-- Length of pass-through specific header (LL) |
| | | | | +-- Flags |
| | | | | | +-- Printer operation code |
| | | | | | | +-- Zero pad to LL specified (0A) |
| | | | | | | | +-- Printer data |
| | | | | | | | | |
| +--+ +--+ +--+ ++ +--+ ++ +----------+ ++ |
| | | | | | | || | | || | | || |
| 0011 12A0 0101 0A 0800 01 000000000000 00 |
+------------------------------------------------------------------+
Figure 6. Server sending client a null print record

- '0011'X = Logical record length, including this byte
- '12A0'X = GDS LU6.2 header
- '0101'X = Data flow record
- '0A'X = Length of pass-through specific header (LL)
- '0800'X = Last of Chain
- '01'X = Print
- '000000000000'X = Zero pad header to LL specified
- '00'X = Null data byte

11. End-to-End Print Example

The next example shows a full print exchange between a Telnet client
and server for a 526 byte spooled file. Selective translation of the
hexadecimal streams into 1) Telnet negotiations and 2) ASCII/EBCDIC
characters are done to aid readability. Telnet negotiations are
delimited by '(' and ')' parenthesis characters; ASCII/EBCDIC
conversions are bracketed by '|' vertical bar characters.

AS/400 Telnet server Enhanced Telnet client
------------------------------- ---------------------------------
FFFD27 -->

(IAC DO NEW-ENVIRON)
<-- FFFB27

(IAC WILL NEW-ENVIRON)

FFFD18FFFA270103 49424D5253454544
7EA5DFDDFD300404 0003FFF0 -->

(IAC DO TERMINAL-TYPE
IAC SB NEW-ENVIRON SEND USERVAR

IBMRSEED xxxxxxxx VAR USERVAR
IAC SE)

<-- FFFB18

(IAC WILL TERMINAL-TYPE)

FFFA1801FFF0 -->

(IAC SB TERMINAL-TYPE SEND IAC
SE)

FFFA27000349424D 52534545447EA5DF
DDFD300404000344 45564E414D450144
554D4D5950525403 49424D4D5347514E
414D450151535953 4F50520349424D4D
5347514C4942012A 4C49424C0349424D
464F4E5401313103 49424D5452414E53
464F524D01310349 424D4D4652545950
4D444C012A485049 490349424D505052
5352433101020103 49424D5050525352
433201040349424D 454E56454C4F5045
01FFFF0349424D41 5343494938393901
<-- 30FFF0

(IAC SB NEW-ENVIRON IS USERVAR
IBMRSEED xxxxxxxx VAR
USERVAR DEVNAME VALUE DUMMYPRT
USERVAR IBMMSGQNAME VALUE QSYSOPR
USERVAR IBMMSGQLIB VALUE *LIBL
USERVAR IBMFONT VALUE 11
USERVAR IBMTRANSFORM VALUE 1
USERVAR IBMMFRTYPMDL VALUE *HPII
USERVAR IBMPPRSRC1 VALUE ESC '01'X
USERVAR IBMPPRSRC2 VALUE '04'X
USERVAR IBMENVELOPE VALUE IAC
USERVAR IBMASCII899 VALUE 0
IAC SE)

<-- FFFA180049424D2D 333831322D31FFF0

(IAC SB TERMINAL-TYPE IS
IBM-3812-1 IAC SE)
FFFD19 -->

(IAC DO EOR)
<-- FFFB19

(IAC WILL EOR)

FFFB19 -->

(IAC WILL EOR)
<-- FFFD19

(IAC DO EOR)
FFFD00 -->

(IAC DO BINARY)
<-- FFFB00

(IAC WILL BINARY)
FFFB00 -->

(IAC WILL BINARY)
<-- FFFD00

(IAC DO BINARY)

004912A090000560 060020C0003D0000 | - { |
C9F9F0F2C5D3C3D9 E3D7F0F6C4E4D4D4 |I902ELCRTP06DUMM| (EBCDIC)
E8D7D9E340400000 0000000000000000 |YPRT |
0000000000000000 0000000000000000 | |
0000000000000000 00FFEF --> | |

(73-byte startup success response
record ... IAC EOR)
00DF12A001010A18 0001000000000000 | |
03CD1B451B283130 551B287330703130 | E (10U (s0p10| (ASCII)
2E30306831327630 733062303033541B |.00h12v0s0b003T |
287330421B266440 1B266C304F1B266C |(s0B &d@ &l0O &l|
303038431B266C30 3035431B28733070 |008C &l005C (s0p|
31372E3130683130 7630733062303030 |17.10h10v0s0b000|
541B283130551B28 73307031372E3130 |T (10U (s0p17.10|
6831307630733062 303030541B287330 |h10v0s0b000T (s0|
421B2664401B266C 314F1B266C303035 |B &d@ &l1O &l005|
431B287330703137 2E31306831307630 |C (s0p17.10h10v0|
733062303030541B 266C314F1B287330 |s0b000T &l1O (s0|
7031372E31306831 3076307330623030 |p17.10h10v0s0b00|
30541B2873307031 372E313068313076 |0T (s0p17.10h10v|
3073306230303054 1B266C30303543FF |0s0b000T &l005C |
EF --> | |

(... 223-byte print record ...
... first of chain ...
... last of chain ... IAC EOR)

<-- 000A12A001020400 0001FFEF

(10-byte print complete header)
031012A001010A10 0001000000000000 | |
03FFFF1B451B2831 30551B2873307031 | E (10U (s0p1| (ASCII)
372E313068313076 3073306230303054 |7.10h10v0s0b000T|
1B287330421B2664 401B266C314F1B26 | (s0B &d@ &l1O &|
6C303035431B266C 31481B266C314F1B |l005C &l1H &l1O |
266C3032411B266C 31431B266C303030 |&l02A &l1C &l000|
38451B266C303038 431B266C30303439 |8E &l008C &l0049|
461B266130521B26 6C303035430A0A0A |F &a0R &l005C |
0A0A0A0A1B26612B 3030303130561B26 | &a+00010V &|
6C303035431B2661 2B30303231364820 |l005C &a+00216H |
2020202020202020 2020202020202020 | |
2020202020205072 696E74204B657920 | Print Key |
4F75747075742020 2020202020202020 |Output |
2020202020202020 2020202020202020 | |
2020202020205061 6765202020310D0A | Page 1 |
1B26612B30303231 3648202020203537 | &a+00216H 57|
3639535331205634 52334D3020393830 |69SS1 V4R3M0 980|
373203FFFF392020 2020202020202020 |72 9 |
202020202020454C 4352545030362020 | ELCRTP06 |
2020202020202020 202030332F33312F | 03/31/|
3939202031363A33 303A34350D0A1B26 |99 16:30:45 &|
612B303032313648 0D0A1B26612B3030 |a+00216H &a+00|
3231364820202020 446973706C617920 |216H Display |
4465766963652020 2E202E202E202E20 |Device . . . . |
2E203A2020515041 444556303033510D |. : QPADEV003Q |
0A1B26612B303032 3136482020202055 | &a+00216H U|
73657220202E202E 202E202E202E202E |ser . . . . . .|
202E202E202E202E 203A202052434153 | . . . . : RCAS|
54524F0D0A1B2661 2B3030323136480D |TRO &a+00216H |
0A1B26612B303032 313648204D41494E | &a+00216H MAIN|
2020202020202020 2020202020202020 | |
2020202020202020 20202041532F3430 | AS/40|
30204D61696E204D 656E750D0A1B2661 |0 Main Menu &a|
2B30303203FFFF31 3648202020202020 |+002 16H |
2020202020202020 2020202020202020 | |
2020202020202020 2020202020202020 | |
2020202020202020 2020202020202020 | |
2020202020202053 797374656D3A2020 | System: |
20454C4352545030 360D0A1B26612B30 | ELCRTP06 &a+0|
3032313648205365 6C656374206F6E65 |0216H Select one|
206F662074686520 666F6C6C6F77696E | of the followin|
673A0D0A1B26612B 3030323136480D0A |g: &a+00216H |
1B26612B30303231 3648202020202020 | &a+00216H |
312E205573657220 7461736B730D0A1B |1. User tasks |
26612B3030323136 4820202020202032 |&a+00216H 2|

2E204F6666696365 207461736B730D0A |. Office tasks |
1B26612B30303231 36480D0A1B26612B | &a+00216H &a+|
3030323136482020 20202020342E2046 |00216H 4. F|
696C65732C206C69 627261726965732C |iles, libraries,|
20616EFFEF | an |

(... 784-byte print record ...
... first of chain ... IAC EOR)
<-- 000A12A001020400 0001FFEF

(10-byte print complete header)

020312A001010A00 0001000000000000 | |
64206603FFFF6F6C 646572730D0A1B26 |d f olders &| (ASCII)
612B303032313648 0D0A1B26612B3030 |a+00216H &a+00|
3231364820202020 2020362E20436F6D |216H 6. Com|
6D756E6963617469 6F6E730D0A1B2661 |munications &a|
2B3030323136480D 0A1B26612B303032 |+00216H &a+002|
3136482020202020 20382E2050726F62 |16H 8. Prob|
6C656D2068616E64 6C696E670D0A1B26 |lem handling &|
612B303032313648 202020202020392E |a+00216H 9.|
20446973706C6179 2061206D656E750D | Display a menu |
0A1B26612B303032 3136482020202020 | &a+00216H |
31302E20496E666F 726D6174696F6E20 |10. Information |
417373697374616E 74206F7074696F6E |Assistant option|
730D0A1B26612B30 3032313648202020 |s &a+00216H |
202031312E20436C 69656E7420416363 | 11. Client Acc|
6573732F34303020 7461736B730D0A1B |ess/400 tasks |
26612B3030323136 480D0A1B26612B30 |&a+00216H &a+0|
303231364803ED20 2020202039302E20 |0216H 90. |
5369676E206F6666 0D0A1B26612B3030 |Sign off &a+00|
323136480D0A1B26 612B303032313648 |216H &a+00216H|
2053656C65637469 6F6E206F7220636F | Selection or co|
6D6D616E640D0A1B 26612B3030323136 |mmand &a+00216|
48203D3D3D3E0D0A 1B26612B30303231 |H ===> &a+0021|
36480D0A1B26612B 3030323136482046 |6H &a+00216H F|
333D457869742020 2046343D50726F6D |3=Exit F4=Prom|
707420202046393D 5265747269657665 |pt F9=Retrieve|
2020204631323D43 616E63656C202020 | F12=Cancel |
4631333D496E666F 726D6174696F6E20 |F13=Information |
417373697374616E 740D0A1B26612B30 |Assistant &a+0|
3032313648204632 333D53657420696E |0216H F23=Set in|
697469616C206D65 6E750D0A1B26612B |itial menu &a+|
3030323136480D0A 1B26612B30303231 |00216H &a+0021|
36480D0CFFEF |6H |

(... 515-byte print record ...
IAC EOR)

<-- 000A12A001020400 0001FFEF

(10-byte print complete header)
001412A001010A00 0001000000000000 | |
03021B45FFEF | E | (ASCII)

(... 20-byte print record ...
IAC EOR)
<-- 000A12A001020400 0001FFEF

(10-byte print complete header)
001112A001010A08 0001000000000000
00FFEF -->

(... 17-byte NULL print record ...
... last of chain ... IAC EOR)
<-- 000A12A001020400 0001FFEF

(10-byte print complete header)

12. Authors' Note

Discussion of this memo should occur in one of these mailing lists:

TN3270E List (Roger Fajman raf@cu.nih.gov). Send subscription
requests as e-mail with "subscribe tn3270e your_full_name" to
listserv@list.nih.gov.

Midrange-L List (David Gibbs david@midrange.com). Send
subscription requests as email with "subscribe midrange-l
your_internet_address" to majordomo@midrange.com.

Telnet Working Group Mailing List: Send subscription requests as
email with "subscribe telnet-ietf" to telnet-ietf-
request@bsdi.com.

13. References

[1] IBM, "IBM 5250 Information Display System, Functions Reference
Manual", SA21-9247-6, March 1987.

[2] IBM, "5494 Remote Control Unit, Functions Reference", SC30-
3533-04, August 1995.

[3] IBM, "AS/400 System API Reference", SC41-5801-01, February
1998.

[4] IBM, "AS/400 TCP/IP Configuration and Reference", SC41-5420-02,
September 1998.

[5] IBM, "AS/400 Communications Configuration", SC41-5401-00,
August 1997.

[6] IBM, "SNA Formats", GA27-3136-13, November 1993.

[7] IBM, "Using the Pageprinter 3812 with System/36 or System/38",
S544-3343-01, September 1997.

[8] Postel, J. and J. Reynolds, "Telnet Protocol Specification",
STD 8, RFC854, May 1983.

[9] Postel, J. and J. Reynolds, "Telnet Option Specifications", STD
8, RFC855, May 1983.

[10] Postel, J. and J. Reynolds, "Telnet Binary Transmission", STD
27, RFC856, May 1983.

[11] VanBokkeln, J., "Telnet Terminal-Type Option", RFC1091,
February 1989.

[12] Postel, J. and J. Reynolds, "Telnet End of Record Option", RFC
885, December 1983.

[13] Alexander, S., "Telnet Environment Option", RFC1572, January
1994.

[14] Chmielewski, P., "5250 Telnet Interface", RFC1205, February
1991.

[15] Postel, J. and J. Reynolds, "Telnet Supress Go Ahead Option",
STD 29, RFC858, May 1983.

[16] IBM, "AS/400 National Language Support", SC41-5101-01, February
1998.

[17] Data Encryption Standard (DES), Federal Information Processing
Standards Publication 46-2, January 22, 1988.

[18] DES Modes of Operation, Federal Information Processing
Standards Publication 81, December 1980.

[19] Reynolds, J. and J. Postel, "Assigned Numbers", STD 2, RFC
1700, October 1994.

[20] IBM, "IBM Pageprinter 3812 Programming Reference", S544-3268.

14. Security Considerations

Security considerations of passwords are discussed in Section 6.

15. Authors' Addresses

Thomas E. Murphy, Jr.
IBM Corporation
1701 North Street
Endicott, NY 13760

Phone: (607) 752-5482
Fax: (607) 752-5421
EMail: murphyte@us.ibm.com

Paul F. Rieth
IBM Corporation
1701 North Street
Endicott, NY 13760

Phone: (607) 752-5474
Fax: (607) 752-5421
EMail: rieth@us.ibm.com

Jeffrey S. Stevens
IBM Corporation
1701 North Street
Endicott, NY 13760

Phone: (607) 752-5488
Fax: (607) 752-5421
EMail: jssteven@us.ibm.com

16. Relation to Other RFC's

UPDATES

This memo is an update to RFC1205 [14], which describes the 5250
Telnet Interface. This update enhances that description to
include device negotiation as well as printer support.

This memo makes use of RFC1572 [13] to enhance communications
with 5250 Telnet clients. RFC1572 is currently on the Standards
Track as a Proposed Standard, and is listed in Assigned Numbers
[19].

17. Full Copyright Statement

Copyright (C) The Internet Society (2000). All Rights Reserved.

This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.

The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.

This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Acknowledgement

Funding for the RFCEditor function is currently provided by the
Internet Society.

------分隔线----------------------------
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
推荐内容