JP2000132465A - Device and method for code conversion of ftp server and record medium where code converting program is recorded - Google Patents

Device and method for code conversion of ftp server and record medium where code converting program is recorded

Info

Publication number
JP2000132465A
JP2000132465A JP10307632A JP30763298A JP2000132465A JP 2000132465 A JP2000132465 A JP 2000132465A JP 10307632 A JP10307632 A JP 10307632A JP 30763298 A JP30763298 A JP 30763298A JP 2000132465 A JP2000132465 A JP 2000132465A
Authority
JP
Japan
Prior art keywords
ftp
code
code conversion
server
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP10307632A
Other languages
Japanese (ja)
Other versions
JP3408435B2 (en
Inventor
Koichi Todo
康一 藤堂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP30763298A priority Critical patent/JP3408435B2/en
Publication of JP2000132465A publication Critical patent/JP2000132465A/en
Application granted granted Critical
Publication of JP3408435B2 publication Critical patent/JP3408435B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a converting device of two-byte codes which can dynamically select a conversion code on the FTP(file transfer protocol) server side. SOLUTION: A parameter is added to a file name on the side of the FTP server 1 specified when file transfer is requested by an FTP client 2 and with this added parameter, the two-byte code of data on a data connection 3 can be identified to perform two-byte code conversion to the in-use code of a computer on which the FTP server 1 runs, and the device comprises a protocol analysis part 6 which analyzes an FTP protocol command sent from the FTP client 2 through a control connection 4 and a code converting process part 9 which performs code conversion of the data transferred through the data connection 3 by selecting one code conversion table out of code conversion tables according to the analysis result of the protocol analysis part 6.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、FTP(File Tra
nsfer Protocol)サーバにおいて2バイトコードを含む
テキストファイルの転送の際に用いるコード変換装置お
よび変換方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an FTP (File Tra
The present invention relates to a code conversion device and a conversion method used for transferring a text file including a two-byte code in a server (nsfer protocol).

【0002】[0002]

【従来の技術】FTPのプロトコル規格では、テキスト
ファイル転送時の回線上のデータ表現としてASCII
(American Standard Code for Information Interchan
ge)とEBCDIC(Extended Binary Coded Decimal
Interchange Code)の1バイトコード2種類が規定され
ており、1バイトコードではファイル転送毎に動的に変
換コードを選択することが可能である。しかし、2バイ
トコードについては一切規定されていないため、動的な
変換コード選択が不可能となっている。これは、FTP
が1バイトコードのみを使用する米国で規定されたプロ
トコルであり、2バイトコードについて考慮されていな
いためである。これについて、プロトコル規格(RFC
(Request for Comments)959)の拡張による2バイ
トコードデータ表現の規格化を行うことも必要ではある
が本質的な解とはならない。その理由は、FTPが異機
種コンピュータシステム間のファイル転送手段として2
バイトコードを使用する国でも既に広く普及しており、
これらの普及済みのシステムに対する解とならないため
である。
2. Description of the Related Art In the FTP protocol standard, ASCII is used as a data expression on a line when transferring a text file.
(American Standard Code for Information Interchan
ge) and EBCDIC (Extended Binary Coded Decimal)
Two types of 1-byte code (Interchange Code) are defined, and a 1-byte code can dynamically select a conversion code for each file transfer. However, since no two-byte code is specified, dynamic conversion code selection is not possible. This is FTP
Is a protocol defined in the United States that uses only one-byte codes, and does not consider two-byte codes. About this, the protocol standard (RFC
(Request for Comments) It is necessary to standardize the representation of 2-byte code data by extending 959), but this is not an essential solution. The reason is that FTP is used as a means for transferring files between different types of computer systems.
It is already widely used in countries that use bytecode,
This is because it is not a solution for these popular systems.

【0003】このため、従来FTPによる2バイトコー
ドを含むテキストファイルの転送におけるコード変換処
理は、以下のいずれかの方式によって実現されていた。
[0003] For this reason, conventionally, a code conversion process in the transfer of a text file including a 2-byte code by FTP has been realized by any of the following methods.

【0004】方式1:FTPによるファイル転送はバイ
ナリデータとして転送し、ファイル転送の前あるいは後
で別のコード変換プログラムを実行してコード変換を行
う方式。
Method 1: File transfer by FTP is a method of transferring as binary data and executing code conversion before or after file transfer by executing another code conversion program.

【0005】方式2:FTPサーバで事前に相手クライ
アント情報(ホスト名,ユーザ名,ファイル名等)と使
用するコードを関連付けたコード変換対応情報を参照し
てコード変換を行う方式。
Method 2: A method in which the FTP server performs code conversion by referring to code conversion correspondence information in which partner client information (host name, user name, file name, etc.) and a code to be used are associated in advance.

【0006】方式3:FTPクライアントでファイル転
送時に変換するコードも指定させ、転送前にコード変換
を行う方式。
Method 3: A method in which a code to be converted at the time of file transfer is designated by an FTP client, and code conversion is performed before transfer.

【0007】[0007]

【発明が解決しようとする課題】しかし、これらの従来
技術には、次のような問題点があった。
However, these conventional techniques have the following problems.

【0008】第1の問題点は、方式1について、定型的
なファイル転送業務以外に利用できず極めて限定された
用途にのみ適用可能な方式であることである。
[0008] The first problem is that the method 1 is a method that cannot be used other than for routine file transfer operations and can be applied only to extremely limited uses.

【0009】第2の問題点は、方式2について、事前に
定義済みの相手クライアント以外とは2バイトコード変
換を行うことができず接続可能なFTPクライアントが
限定され、かつ定義済みの相手クライアントとも動的に
は変換コードを選択できないという問題がある。FTP
サーバの場合、ファイル転送相手すなわちFTPクライ
アントを選ぶことができず、様々なコードで動作するF
TPクライアントを想定する必要があり、かつFTPク
ライアントが使用するコードはファイル転送時に初めて
認識可能なため、方式2も適用可能な用途が限定される
方式といえる。
[0009] The second problem is that, with regard to the method 2, the FTP client that cannot perform 2-byte code conversion with a client other than the client defined in advance and is connectable is limited. There is a problem that the conversion code cannot be selected dynamically. FTP
In the case of a server, a file transfer partner, that is, an FTP client cannot be selected.
Since it is necessary to assume a TP client and the code used by the FTP client can be recognized for the first time at the time of file transfer, it can be said that the method 2 is also a method in which the applicable applications are limited.

【0010】第3の問題点は、方式3について、現在広
く普及しているパーソナルコンピュータやUNIXシス
テムで動作するFTPクライアントには方式3のような
2バイトコード変換機能を持つシステムが殆どないとい
うことである。
[0010] The third problem is that, with regard to method 3, almost no personal computer or FTP client operating on a UNIX system has a 2-byte code conversion function like method 3 at present. It is.

【0011】このため、これら大多数のコード変換機能
を持たないFTPクライアントとのファイル転送を想定
すると、FTPサーバ側で動的に変換コードの選択が可
能な方式を提供する必要があった。したがって、本発明
は、FTPサーバ側で動的に変換コードの選択が可能な
コード変換装置および変換方法を提供することを目的と
する。
Therefore, assuming file transfer with most FTP clients that do not have the code conversion function, it is necessary to provide a method that allows the FTP server to dynamically select a conversion code. Accordingly, it is an object of the present invention to provide a code conversion device and a conversion method capable of dynamically selecting a conversion code on the FTP server side.

【0012】[0012]

【課題を解決するための手段】上記課題を解決するた
め、請求項1記載の発明は、FTPクライアントからの
ファイル転送要求時に指定するFTPサーバ側ファイル
名にパラメータ追加を行い、この追加したパラメータで
データコネクション上のデータの2バイトコードの識別
を可能とし、FTPサーバが動作するコンピュータの使
用コードへの2バイトコード変換を行う装置であって、
制御コネクションを介してFTPクライアントから送信
されたFTPプロトコルコマンドを解析するプロトコル
解析部と、データコネクションを介して転送されたデー
タを複数のコード変換テーブルからプロトコル解析部の
解析結果に応じて1つのコード変換テーブルを選択して
コード変換を行うコード変換処理部とを備えることを特
徴としている。
In order to solve the above-mentioned problem, the invention according to claim 1 adds a parameter to an FTP server-side file name specified at the time of a file transfer request from an FTP client, and uses the added parameter. An apparatus which enables identification of a 2-byte code of data on a data connection and converts the 2-byte code into a code used by a computer on which an FTP server operates,
A protocol analysis unit for analyzing an FTP protocol command transmitted from the FTP client via the control connection, and one code corresponding to the data transferred via the data connection from a plurality of code conversion tables according to the analysis result of the protocol analysis unit A code conversion processing unit for selecting a conversion table and performing code conversion.

【0013】また、請求項2記載の発明は、プロトコル
解析部での解析結果が利用者認証要求であった場合に、
あらかじめ記憶している利用者管理情報を参照して利用
者認証を行い、認証された利用者情報の中に使用する2
バイトコードの識別情報が登録されている場合、この利
用者からのファイル転送処理で使用する2バイトコード
の既定値をこの識別情報により決定することを特徴とし
ている。また、請求項3記載の発明は、コード変換処理
部が、FTPサーバからFTPクライアントへの送信時
には転送ファイルからデータを読み出した直後に、FT
PクライアントからFTPサーバへの受信時には受信デ
ータを転送ファイルへ書き込む直前に行うことを特徴と
している。
Further, according to the present invention, when the analysis result of the protocol analysis unit is a user authentication request,
User authentication is performed by referring to user management information stored in advance, and is used in the authenticated user information 2
When the identification information of the bytecode is registered, the default value of the 2-byte code used in the file transfer process from the user is determined by the identification information. Further, according to a third aspect of the present invention, when the code conversion processing unit reads the data from the transfer file at the time of transmission from the FTP server to the FTP client,
When receiving data from the P client to the FTP server, it is performed immediately before writing the received data to the transfer file.

【0014】また、請求項4記載の発明は、FTPクラ
イアントからのファイル転送要求時に指定するFTPサ
ーバ側ファイル名にパラメータ追加を行い、この追加し
たパラメータでデータコネクション上のデータの2バイ
トコードの識別を可能とし、FTPサーバが動作するコ
ンピュータの使用コードへの2バイトコード変換を行う
方法であって、制御コネクションを介してFTPクライ
アントから送信されたFTPプロトコルコマンドを解析
するプロトコル解析過程と、データコネクションを介し
て転送されたデータを複数のコード変換テーブルからプ
ロトコル解析過程での解析結果に応じてコード変換テー
ブルを選択してコード変換を行うコード変換過程とを有
することを特徴としている。
According to a fourth aspect of the present invention, a parameter is added to the file name on the FTP server side specified at the time of a file transfer request from the FTP client, and the added parameter identifies the 2-byte code of the data on the data connection. A two-byte code conversion to a code used by a computer on which an FTP server operates, comprising: a protocol analysis step of analyzing an FTP protocol command transmitted from an FTP client via a control connection; And performing code conversion by selecting a code conversion table according to the analysis result of the protocol analysis process from the plurality of code conversion tables for the data transferred through the code conversion table.

【0015】また、請求項5記載の発明は、請求項1記
載のFTPサーバにおけるコード変換装置において実行
されるコード変換のためのプログラムを記録した計算機
読み取り可能な記録媒体である。
According to a fifth aspect of the present invention, there is provided a computer-readable recording medium storing a code conversion program executed by the code conversion apparatus in the FTP server according to the first aspect.

【0016】[0016]

【発明の実施の形態】以下、図面参照して本発明の実施
形態について説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0017】まず、本発明の概要について図面を参照し
て説明する。本発明は、異機種コンピュータシステム間
のファイル転送手段として広く普及しているFTPのサ
ービス提供システム(以下、FTPサーバ)において、
FTPサービス利用システム(以下、FTPクライアン
ト)からのファイル転送要求毎に2バイトコード変換種
別を動的に選択できる構成を提供するものである。図1
において、FTPサーバ1とFTPクライアント2の間
には、実際のファイルデータを転送するための通信パス
であるデータコネクション3と、利用者認証やファイル
転送指示などの電文を送受信するための通信パスである
制御コネクション4の2本の通信パスを使用している。
このうち、データコネクション3はファイル転送等で実
際にデータを転送する際のみ開設され転送終了とともに
解放される通信パスであり、制御コネクション4はFT
Pサーバ1とFTPクライアント2が接続している間存
在している。
First, an outline of the present invention will be described with reference to the drawings. The present invention relates to an FTP service providing system (hereinafter referred to as an FTP server) which is widely used as a file transfer means between different types of computer systems.
The present invention provides a configuration in which a 2-byte code conversion type can be dynamically selected for each file transfer request from an FTP service using system (hereinafter, FTP client). FIG.
In the communication between the FTP server 1 and the FTP client 2, there is a data connection 3, which is a communication path for transferring actual file data, and a communication path for transmitting and receiving messages such as user authentication and file transfer instructions. Two communication paths of a certain control connection 4 are used.
The data connection 3 is a communication path that is opened only when data is actually transferred by file transfer or the like and is released when the transfer is completed.
It exists while the P server 1 and the FTP client 2 are connected.

【0018】FTPクライアント2から制御コネクショ
ン4を介してFTPサーバ1に送信される各種の指示コ
マンドはFTPのプロトコル規格であるRFC959に
て細かく規定されている。図2はRFC959で規定さ
れているFTPプロトコルコマンドの中で本発明に関連
する1バイトコード指示コマンドC1やファイル転送指
示コマンドC2を抜粋したものである。
Various instruction commands transmitted from the FTP client 2 to the FTP server 1 via the control connection 4 are specified in detail by RFC 959, which is an FTP protocol standard. FIG. 2 is an extract of a one-byte code instruction command C1 and a file transfer instruction command C2 related to the present invention from among FTP protocol commands defined in RFC959.

【0019】FTPでは制御コネクション上の文字コー
ドはASCIIと規定されているが、図2に示すように、1
バイト指示コマンドC1は、“TYPE”<SP><type-code><
CRLF>から構成されている。ここで、“TYPE”は文字
列、<SP>はスペース文字、<type-code>はコード種別を
示す“A”(ASCII)(省略時の既定値),“E”(EBCDI
C),または“I”(イメージデータ)の文字、<CRLF>は
改行文字である。また、ファイル転送指示コマンドC2
は、クライアントへの転送を示す“RETR”,クライアン
トからのファイルの新規/置換を行うための転送を示す
“STOR”,またはクライアントからのファイルの追加格
納を行うための転送“APPE”の文字列と、スペース文字
と、サーバ側のファイル名を示す文字列である<pathnam
e>パラメータと、改行文字とから構成されている。
In the FTP, the character code on the control connection is defined as ASCII, but as shown in FIG.
The byte instruction command C1 is “TYPE” <SP><type-code><
CRLF>. Here, “TYPE” is a character string, <SP> is a space character, and <type-code> is a code type “A” (ASCII) (default when omitted), “E” (EBCDI
C) or the character of "I" (image data), <CRLF> is a line feed character. The file transfer instruction command C2
Is a character string of "RETR" indicating transfer to the client, "STOR" indicating transfer for new / replacement of a file from the client, or "APPE" for transfer of additional file from the client. And a space character and <pathnam, which is a character string indicating the file name on the server side
e> parameter and a line feed character.

【0020】図2に示すように、RFC959では2バ
イトコード指示コマンドが規定されておらず、FTPで
ファイルを転送する際、データコネクション3上を流れ
るデータのコードが2バイトコードであっても2バイト
コードを意識してコード変換をFTPサーバ1で行うこ
とは想定されていない。
As shown in FIG. 2, the two-byte code instruction command is not defined in RFC959, and when transferring a file by FTP, even if the code of the data flowing on the data connection 3 is a two-byte code, It is not assumed that the FTP server 1 performs code conversion in consideration of bytecode.

【0021】しかし、日本その他の2バイトコードを使
用する国では、様々な2バイトコードが広く利用されて
おり、従来より、従来の技術の欄で記述した方式で2バ
イトコードを変換している。しかし、これらの方式はい
ずれも利用範囲が限られており、1バイトコードと同様
ファイル転送時にデータコネクション3上を流れるデー
タのコードを認識してFTPサーバ1上で動的に2バイ
トコード変換を行う方式の提供が広く望まれていた。
However, in Japan and other countries that use double-byte codes, various double-byte codes are widely used. Conventionally, double-byte codes have been converted by the method described in the section of the related art. . However, the use range of each of these methods is limited. Like the 1-byte code, the code of the data flowing on the data connection 3 at the time of file transfer is recognized and the 2-byte code conversion is dynamically performed on the FTP server 1. It has been widely desired to provide a method for performing this.

【0022】そこで、本発明は、RFC959で規定さ
れているファイル転送指示コマンドを拡大解釈し(図
3)、FTPクライアント2からのファイル転送要求時
に指定するFTPサーバ1側ファイル名にパラメータ追
加を行い、この追加したパラメータでデータコネクショ
ン3上のデータの2バイトコードの識別を可能とし、F
TPサーバ1が動作するコンピュータの使用コードへの
2バイトコード変換を行う方式を規定した。本発明は、
このようにして、任意のFTPクライアントとのファイ
ル転送において、動的に任意のコードを選択し2バイト
コード変換を可能にする。
Therefore, according to the present invention, the file transfer instruction command specified in RFC 959 is expanded and interpreted (FIG. 3), and a parameter is added to the file name of the FTP server 1 specified at the time of the file transfer request from the FTP client 2. The added parameter enables identification of the 2-byte code of the data on the data connection 3, and F
A method of performing a 2-byte code conversion to a code used by a computer on which the TP server 1 operates is defined. The present invention
In this way, in file transfer with an arbitrary FTP client, an arbitrary code is dynamically selected to enable 2-byte code conversion.

【0023】なお、図1に示すプロトコル変換部6、コ
ード変換処理部9等におけるデータ処理は、FTPサー
バを構成するコンピュータによってプログラムを実行す
ることで実現することができ、そのプログラムはコンピ
ュータ読み取り可能な記録媒体に記録して頒布すること
が可能である。
The data processing in the protocol conversion unit 6, the code conversion processing unit 9 and the like shown in FIG. 1 can be realized by executing a program by a computer constituting an FTP server, and the program is computer-readable. It is possible to record it on a simple recording medium and distribute it.

【0024】次に、本発明の実施形態について詳細に説
明する。図1を参照すると、本発明のFTP通信システ
ムの一実施形態は、FTPサービスを提供するFTPサ
ーバ1とFTPサービスを利用するFTPクライアント
2と、両者間にファイル転送等の実データを転送するデ
ータコネクション3とFTPクライアント2からFTP
サーバ1への各種指示コマンドを転送する制御コネクシ
ョン4の2本の通信パスから構成されている。
Next, an embodiment of the present invention will be described in detail. Referring to FIG. 1, an FTP communication system according to an embodiment of the present invention includes an FTP server 1 that provides an FTP service, an FTP client 2 that uses the FTP service, and data that transfers actual data such as file transfer between the two. FTP from connection 3 and FTP client 2
It is composed of two communication paths of a control connection 4 for transferring various instruction commands to the server 1.

【0025】FTPサーバ1は、データコネクション3
および制御コネクション4を介してFTPクライアント
2と通信を行うためのデータ送受信処理部5と、制御コ
ネクション4を介してFTPクライアント2から送信さ
れたFTPプロトコルコマンドを解析するプロトコル解
析部6、解析したプロトコルコマンドが利用者認証要求
であった場合に利用者管理情報8を基に利用者認証処理
を行う利用者認証部7、データコネクション3を介して
転送されたデータを複数のコード変換テーブル1(10
−1),…,コード変換テーブルN(10−N)からな
るコード変換テーブル群10から適切なコード変換テー
ブルを選択してコード変換を行うコード変換処理部9、
および転送ファイル(記憶装置)11とを含む。
The FTP server 1 has a data connection 3
And a data transmission / reception processing unit 5 for communicating with the FTP client 2 via the control connection 4, a protocol analysis unit 6 for analyzing an FTP protocol command transmitted from the FTP client 2 via the control connection 4, an analyzed protocol When the command is a user authentication request, the user authentication unit 7 that performs user authentication processing based on the user management information 8 and converts the data transferred via the data connection 3 into a plurality of code conversion tables 1 (10
-1),..., A code conversion processing unit 9 for selecting an appropriate code conversion table from a code conversion table group 10 including a code conversion table N (10-N) and performing code conversion;
And a transfer file (storage device) 11.

【0026】これらの手段はそれぞれ概略つぎのように
動作する。データ送受信処理部5は、データコネクショ
ン3とコード変換処理部9間のデータ送受信処理およ
び、制御コネクション4とプロトコル解析部6間のプロ
トコルコマンド送受信処理を行う。プロトコル解析部6
は、FTPクライアント2から各種処理要求であるプロ
トコルコマンドを解析実行し、その処理結果をプロトコ
ルコマンド応答としてFTPクライアント2へ返信す
る。本発明は、このプロトコル解析部6の構成および動
作を主要な特徴とするものであるが、このプロトコル解
析部6の構成および動作の詳細については後述する。
Each of these means operates roughly as follows. The data transmission / reception processing unit 5 performs data transmission / reception processing between the data connection 3 and the code conversion processing unit 9 and protocol command transmission / reception processing between the control connection 4 and the protocol analysis unit 6. Protocol analyzer 6
Analyzes and executes protocol commands as various processing requests from the FTP client 2, and returns the processing results to the FTP client 2 as a protocol command response. The main feature of the present invention is the configuration and operation of the protocol analyzer 6. The configuration and operation of the protocol analyzer 6 will be described later in detail.

【0027】利用者認証部7は、プロトコル解析部6で
の解析結果が利用者認証要求であった場合に利用者管理
情報8を参照して利用者認証を行う。この際、認証され
た利用者情報の中に使用する2バイトコードの識別情報
が登録されている場合、この利用者からのファイル転送
処理で使用する2バイトコードの既定値をこの識別情報
により決定しておく。
The user authentication unit 7 performs user authentication by referring to the user management information 8 when the result of analysis by the protocol analysis unit 6 is a user authentication request. At this time, if the identification information of the two-byte code to be used is registered in the authenticated user information, the default value of the two-byte code to be used in the file transfer process from this user is determined by the identification information. Keep it.

【0028】コード変換処理部9は、ファイル転送前に
コード変換テーブル群10から使用するコード変換テー
ブルを決定しておき、決定したコード変換テーブルを用
いてコード変換処理を行う。コード変換処理は、FTP
サーバ1からFTPクライアント2への送信時には転送
ファイル11からデータを読み出した直後に、FTPク
ライアント2からFTPサーバ1への受信時には受信デ
ータを転送ファイル11へ書き込む直前に行う。
The code conversion processing unit 9 determines a code conversion table to be used from the code conversion table group 10 before file transfer, and performs a code conversion process using the determined code conversion table. Code conversion process is FTP
This is performed immediately after reading data from the transfer file 11 when transmitting from the server 1 to the FTP client 2, and immediately before writing received data into the transfer file 11 when receiving from the FTP client 2 to the FTP server 1.

【0029】次に、図1,図2,図3および図4のフロ
ーチャートを参照して本実施形態の全体の動作について
詳細に説明する。
Next, the overall operation of the present embodiment will be described in detail with reference to the flowcharts of FIGS. 1, 2, 3 and 4.

【0030】まず、図2に示す通りFTPのファイル転
送指示コマンドC2は、ファイルの転送方向および格納
方式の識別情報(RETR,STOR,APPEコマンド)と転送ファ
イルのサーバ側ファイル名情報(<pathname>(パス名)
パラメータ)しかない。
First, as shown in FIG. 2, the FTP file transfer instruction command C2 includes identification information (RETR, STOR, APPE command) of the file transfer direction and storage method, and server-side file name information (<pathname>) of the transfer file. (Path name)
Parameter).

【0031】この<pathname>パラメータを本方式を採用
するFTPサーバでは、図3のように拡大解釈する。す
なわち、P2に示すようにFTPサーバが動作するコン
ピュータのファイルシステムでファイル名として許され
ていない文字をデリミタ文字と規定し、その後に続く文
字で転送データの2バイトコードを指定する。<pathnam
e>パラメータは現在広く普及しているFTPクライアン
トではリモートファイル名としてファイル転送の都度入
力したデータであり本方式を採用したFTPサーバの場
合にリモートファイル名に続けてデリミタ文字と2バイ
トコード識別を入力することになる。
The <pathname> parameter is expanded and interpreted by the FTP server adopting this method as shown in FIG. That is, as shown in P2, a character that is not allowed as a file name in the file system of the computer on which the FTP server operates is defined as a delimiter character, and the subsequent character specifies a 2-byte code of the transfer data. <pathnam
The e> parameter is data that is input every time a file is transferred as a remote file name in the FTP client that is widely used at present. In the case of an FTP server that adopts this method, the delimiter character and 2-byte code identification are added after the remote file name. Will be entered.

【0032】デリミタ文字としては、サーバのファイル
システムでファイル名への使用が許されていないスペー
ス以外の文字を使用することができる。2バイトコード
識別としては、2バイトコードの種別を示す文字とし
て、例えば、文字“S”でシフトJISコード、文字
“E”でEUC(Exended UNIX Code)コード、文字“U”で
Unicode(ユニコード)を用いることができる。
As the delimiter character, a character other than a space which is not allowed to be used for a file name in the file system of the server can be used. As the two-byte code identification, a character indicating the type of the two-byte code is, for example, a shift JIS code with the character "S", an EUC (Extended UNIX Code) code with the character "E", and a character "U".
Unicode (Unicode) can be used.

【0033】次に、図1のプロトコル解析部6の処理を
本発明に関連する処理について図4のフローチャートを
用いて詳細に説明する。データ送受信処理部5が制御コ
ネクション4を介して受信したFTPクライアント2か
らのプロトコルコマンドを受信するとプロトコル解析部
6に渡される(ステップS1)。次に受信したプロトコ
ルコマンドを解析し、ファイル転送指示コマンドかどう
かを識別する(ステップS2)。ファイル転送指示コマ
ンドでない場合については本発明で特に言及するもので
はなく、それぞれの要求処理の実行を行う(ステップS
3)。ファイル転送指示コマンド、すなわちRETR,STOR,
APPEのいずれかのコマンドであった場合、次に必須パラ
メータである<pathname>パラメータの解析を行う(ステ
ップS4)。
Next, the processing of the protocol analyzer 6 in FIG. 1 will be described in detail with reference to the flowchart in FIG. 4 for processing related to the present invention. When the data transmission / reception processing unit 5 receives the protocol command from the FTP client 2 received via the control connection 4, it is transferred to the protocol analysis unit 6 (step S1). Next, the received protocol command is analyzed to determine whether it is a file transfer instruction command (step S2). The case where the command is not a file transfer instruction command is not particularly mentioned in the present invention, and each request process is executed (step S
3). File transfer instruction command, that is, RETR, STOR,
If the command is one of APPE, the <pathname> parameter, which is an essential parameter, is analyzed next (step S4).

【0034】次の処理が本発明で新たに追加される処理
で、<pathname>パラメータに図3で記述した拡張パラメ
ータが指定されているかどうかの検査を行い(ステップ
S5)、指定されている場合その拡張パラメータより当
該ファイル転送時のデータの2バイトコードを識別し、
FTPサーバが動作するコンピュータの2バイトコード
とのコード変換に用いるコード変換テーブルを図1のコ
ード変換テーブル群10より決定する(ステップS
6)。<pathname>パラメータに拡張パラメータが指定さ
れていないあるいは形式が不正の場合、ファイル転送前
に指示された1バイトコード識別情報からASCII,EBCDI
C,IMAGE(イメージ)のいずれかのコード変換テーブル
を決定する(ステップS7)。
The next process is a process newly added in the present invention. It is checked whether or not the extension parameter described in FIG. 3 is designated in the <pathname> parameter (step S5). The 2-byte code of the data at the time of the file transfer is identified from the extended parameter,
The code conversion table used for the code conversion with the 2-byte code of the computer on which the FTP server operates is determined from the code conversion table group 10 in FIG. 1 (step S).
6). If no extension parameter is specified or the format is invalid in the <pathname> parameter, ASCII, EBCDI is used from the 1-byte code identification information specified before file transfer.
One of the code conversion tables of C and IMAGE (image) is determined (step S7).

【0035】このようにして決定したコード変換テーブ
ルに基づき、転送ファイル11のコードとデータコネク
ション3間のコード変換処理をコード変換処理部9で行
う(ステップS8)。
Based on the code conversion table determined in this manner, the code conversion processing between the code of the transfer file 11 and the data connection 3 is performed by the code conversion processing section 9 (step S8).

【0036】[0036]

【発明の効果】第1の効果は、現在広く普及しているF
TPクライアントを相手に2バイトコードの選択ができ
ることにある。その理由は、発明が解決しようとする課
題の欄で記述した通り、現在広く普及しているFTPク
ライアントには2バイトコード変換機能がないためであ
る。第2の効果は、変換する2バイトコードをファイル
転送時に動的に選択できることにある。その理由は、従
来の技術の欄に記述した通り、利用者管理情報等による
静的なコード変換テーブルの対応付けでは適用範囲が定
型的なファイル転送業務のみとなり、任意の時点で任意
のFTPクライアントと任意のファイルについて転送す
る際には適用できないためである。
The first effect is that F which is currently widely used is widely used.
The point is that a 2-byte code can be selected with the TP client. The reason is that, as described in the section of the problem to be solved by the invention, the FTP client that is currently widely used does not have a 2-byte code conversion function. The second effect is that a 2-byte code to be converted can be dynamically selected at the time of file transfer. The reason is that, as described in the section of the prior art, in the association of the static code conversion table based on the user management information and the like, the application range is limited to a standard file transfer operation, and any FTP client can be used at any time. This is because it cannot be applied when transferring an arbitrary file.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の一実施形態を示すブロック図であ
る。
FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】 FTPのプロトコルコマンドの一部を説明す
るための図である。
FIG. 2 is a diagram for explaining a part of an FTP protocol command;

【図3】 本発明によって提案されたファイル転送指示
コマンドにおける<pathname>パラメータ形式を示す図で
ある。
FIG. 3 is a diagram showing a <pathname> parameter format in a file transfer instruction command proposed by the present invention.

【図4】 本発明の実施形態の動作を示すフローチャー
トである。
FIG. 4 is a flowchart showing an operation of the embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 FTPサーバ 6 プロトコル解析部 9 コード変換処理部 10 コード変換テーブル群 10−1〜10−N コード変換テーブル1〜N Reference Signs List 1 FTP server 6 Protocol analysis unit 9 Code conversion processing unit 10 Code conversion table group 10-1 to 10-N Code conversion tables 1 to N

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 FTPクライアントからのファイル転送
要求時に指定するFTPサーバ側ファイル名にパラメー
タ追加を行い、この追加したパラメータでデータコネク
ション上のデータの2バイトコードの識別を可能とし、
FTPサーバが動作するコンピュータの使用コードへの
2バイトコード変換を行う装置であって、 制御コネクションを介してFTPクライアントから送信
されたFTPプロトコルコマンドを解析するプロトコル
解析部と、 データコネクションを介して転送されたデータを複数の
コード変換テーブルからプロトコル解析部の解析結果に
応じて1つのコード変換テーブルを選択してコード変換
を行うコード変換処理部とを備えることを特徴とするF
TPサーバにおけるコード変換装置。
1. A parameter is added to a file name of an FTP server specified at the time of a file transfer request from an FTP client, and the added parameter enables identification of a 2-byte code of data on a data connection.
A device that converts a 2-byte code into a code used by a computer on which an FTP server operates, a protocol analyzing unit that analyzes an FTP protocol command transmitted from an FTP client via a control connection, and a transfer via a data connection And a code conversion processing unit for selecting one code conversion table from the plurality of code conversion tables according to the analysis result of the protocol analysis unit and performing code conversion.
Code conversion device in TP server.
【請求項2】 プロトコル解析部での解析結果が利用者
認証要求であった場合に、あらかじめ記憶している利用
者管理情報を参照して利用者認証を行い、認証された利
用者情報の中に使用する2バイトコードの識別情報が登
録されている場合、この利用者からのファイル転送処理
で使用する2バイトコードの既定値をこの識別情報によ
り決定することを特徴とする請求項1記載のFTPサー
バにおけるコード変換装置。
2. When the analysis result of the protocol analysis unit is a user authentication request, user authentication is performed with reference to user management information stored in advance, and the user information is stored in the authenticated user information. 2. A method according to claim 1, wherein when identification information of a two-byte code to be used is registered, a default value of the two-byte code used in a file transfer process from the user is determined by the identification information. Code conversion device in FTP server.
【請求項3】 コード変換処理部が、FTPサーバから
FTPクライアントへの送信時には転送ファイルからデ
ータを読み出した直後に、FTPクライアントからFT
Pサーバへの受信時には受信データを転送ファイルへ書
き込む直前に行うことを特徴とする請求項1記載のFT
Pサーバにおけるコード変換装置。
3. When the code conversion processing unit transmits data from the FTP server to the FTP client during transmission from the FTP server, the code conversion processing unit transmits the data from the FTP client to the FTP client immediately after reading the data from the transfer file.
2. The FT according to claim 1, wherein the reception is performed immediately before writing the reception data to the transfer file at the time of reception to the P server.
Code conversion device in P server.
【請求項4】 FTPクライアントからのファイル転送
要求時に指定するFTPサーバ側ファイル名にパラメー
タ追加を行い、この追加したパラメータでデータコネク
ション上のデータの2バイトコードの識別を可能とし、
FTPサーバが動作するコンピュータの使用コードへの
2バイトコード変換を行う方法であって、 制御コネクションを介してFTPクライアントから送信
されたFTPプロトコルコマンドを解析するプロトコル
解析過程と、 データコネクションを介して転送されたデータを複数の
コード変換テーブルからプロトコル解析過程での解析結
果に応じてコード変換テーブルを選択してコード変換を
行うコード変換過程とを有することを特徴とするFTP
サーバにおけるコード変換方法。
4. A parameter is added to an FTP server-side file name specified when a file transfer is requested from an FTP client, and the added parameter enables identification of a 2-byte code of data on a data connection.
A method of performing a 2-byte code conversion to a code used by a computer on which an FTP server operates, a protocol analysis process of analyzing an FTP protocol command transmitted from an FTP client via a control connection, and a transfer via a data connection And a code conversion step of selecting a code conversion table from the plurality of code conversion tables in accordance with the analysis result in the protocol analysis step and performing code conversion.
Code conversion method in server.
【請求項5】 請求項1記載のFTPサーバにおけるコ
ード変換装置において実行されるコード変換のためのプ
ログラムを記録した計算機読み取り可能な記録媒体。
5. A computer-readable recording medium on which a program for code conversion executed in the code conversion device in the FTP server according to claim 1 is recorded.
JP30763298A 1998-10-28 1998-10-28 Code conversion device and conversion method in FTP server and recording medium recording code conversion program Expired - Fee Related JP3408435B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30763298A JP3408435B2 (en) 1998-10-28 1998-10-28 Code conversion device and conversion method in FTP server and recording medium recording code conversion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30763298A JP3408435B2 (en) 1998-10-28 1998-10-28 Code conversion device and conversion method in FTP server and recording medium recording code conversion program

Publications (2)

Publication Number Publication Date
JP2000132465A true JP2000132465A (en) 2000-05-12
JP3408435B2 JP3408435B2 (en) 2003-05-19

Family

ID=17971380

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30763298A Expired - Fee Related JP3408435B2 (en) 1998-10-28 1998-10-28 Code conversion device and conversion method in FTP server and recording medium recording code conversion program

Country Status (1)

Country Link
JP (1) JP3408435B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8447655B2 (en) 2005-04-25 2013-05-21 Casio Computer Co., Ltd. Data processing apparatus
JP7424039B2 (en) 2019-12-23 2024-01-30 日本電気株式会社 Data transmitting device, data receiving device, data transmitting and receiving system, data transmitting method, data receiving method, data transmitting program, and data receiving program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8447655B2 (en) 2005-04-25 2013-05-21 Casio Computer Co., Ltd. Data processing apparatus
JP7424039B2 (en) 2019-12-23 2024-01-30 日本電気株式会社 Data transmitting device, data receiving device, data transmitting and receiving system, data transmitting method, data receiving method, data transmitting program, and data receiving program

Also Published As

Publication number Publication date
JP3408435B2 (en) 2003-05-19

Similar Documents

Publication Publication Date Title
US6658625B1 (en) Apparatus and method for generic data conversion
US6848079B2 (en) Document conversion using an intermediate computer which retrieves and stores position information on document data
US20030084405A1 (en) Contents conversion system, automatic style sheet selection method and program thereof
US5968127A (en) Information processing apparatus
US6549936B1 (en) Method and system for transferring a job between two computers submitted as a request containing a plurality of scripts to be executed
EP0918282B1 (en) Server and client
JP3670303B2 (en) Data conversion method and data conversion apparatus
US6466968B2 (en) Information processing system capable of file transmission and information processing apparatus in the system
JP2003091393A (en) Printing system and method thereof
EP1065592B1 (en) Shared management of data objects in a communication network
JP2000047964A (en) Data transfer method on network, its device, its system, and recording medium having recorded data transfer program on network thereon
US6691125B1 (en) Method and apparatus for converting files stored on a mainframe computer for use by a client computer
US7237222B1 (en) Protocol for controlling an execution process on a destination computer from a source computer
JP2000132434A (en) Information processor, information processing method, host device and its control method, server device and its control method, and storage medium
US8291089B2 (en) Image processing device, control method therefor, and program
JP2007510200A (en) Method of operation for server and object to communicate with server
JP2000132465A (en) Device and method for code conversion of ftp server and record medium where code converting program is recorded
US20080175268A1 (en) method and system for providing interoperability of different version protocols without access to protocol specific code
JP2891405B2 (en) Print request processing device and print request processing method
JP2000284926A (en) Print processing system and its method
JP2001005711A (en) Data communication system
JPH07319782A (en) Character code converter
JPH05342123A (en) Command transfer system for network system
JP2002163596A (en) System and method for information processing, and print system
JPH09223050A (en) Using method for shared file

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010327

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080314

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090314

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090314

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100314

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees