JPH10143455A - Client/server system - Google Patents

Client/server system

Info

Publication number
JPH10143455A
JPH10143455A JP8296344A JP29634496A JPH10143455A JP H10143455 A JPH10143455 A JP H10143455A JP 8296344 A JP8296344 A JP 8296344A JP 29634496 A JP29634496 A JP 29634496A JP H10143455 A JPH10143455 A JP H10143455A
Authority
JP
Japan
Prior art keywords
client
server
communication
service
port
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.)
Pending
Application number
JP8296344A
Other languages
Japanese (ja)
Inventor
Hiroyuki Utsugida
浩幸 枦田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP8296344A priority Critical patent/JPH10143455A/en
Publication of JPH10143455A publication Critical patent/JPH10143455A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To flexibly deal with the change of application on the side of server. SOLUTION: This system is constituted so that clients from 2-1 to 2-n and a server 3 can communicate through a network 1. In this case, a master port for receiving the start and end requests of service and a communication port for performing the service are respectively set to the server 3, and this master port is provided with a communication manager for reporting a communication channel number to be used to the clients from 2-1 to 2-n in response to the start request of service. Besides, the clients from 2-1 to 2-n are provided with interfaces for receiving the service by accessing the communication channel of the number reported by this communication manager.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ネットワークを
介してクライアントとサーバとが通信を行うクライアン
ト/サーバシステムに関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to a client / server system for communicating between a client and a server via a network.

【0002】[0002]

【従来の技術】サーバ/クライアントシステムは、図1
2に示す如くネットワーク301を介して複数のクライ
アント301−1〜302−nとサーバ303とが通信
可能に接続されたシステムである。クライアント302
−1〜302−nには、クライアントアプリケーション
Aが備えられており、クライアントアプリケーションA
はサーバ303のサーバアプリケーションAにアクセス
を行って所望の処理を行わせて、その結果を受けるよう
に構成されている。
2. Description of the Related Art A server / client system is shown in FIG.
2, a plurality of clients 301-1 to 302-n and a server 303 are communicably connected via a network 301. Client 302
-1 to 302-n are provided with a client application A.
Is configured to access the server application A of the server 303 to perform a desired process and receive the result.

【0003】上記において、クライアント302−1〜
302−nとサーバ303との間においては、単一の通
信チャネル(番号n)を取り決め、この通信ポートを共
有してクライアント302−1〜302−nのアプリケ
ーションAがサーバ303のアプリケーションAへアク
セスするように構成されている。また、サーバ303側
に新たなアプリケーションBを追加するような変更を加
えるときには、図13に示されるように、当該サーバ3
03のアプリケーションBをアクセスするための通信ポ
ート(番号m)をクライアント302−1〜302−n
とサーバ303との間で取り決める必要がある。
In the above, the clients 302-1 to 302-1
A single communication channel (number n) is negotiated between 302-n and server 303, and application A of clients 302-1 to 302-n accesses application A of server 303 by sharing this communication port. It is configured to be. When making a change to add a new application B on the server 303 side, as shown in FIG.
The communication ports (number m) for accessing the application B No. 03 are set to the clients 302-1 to 302-n.
And the server 303 must be negotiated.

【0004】[0004]

【発明が解決しようとする課題】従って、サーバ303
側においてアプリケーションに変更がある度に、使用す
る通信ポートを全クライアント302−1〜302−n
へ知らせる必要があり、かなり煩わしいシステムとなっ
ていた。
Therefore, the server 303
Each time there is a change in the application on the client side, the communication port to be used is changed for all clients 302-1 to 302-n.
The system had to be notified, and it was a rather cumbersome system.

【0005】また、サーバ303側においては、1つの
アプリケーションに対応させて1つの通信ポートを設定
するだけであり、複数のクライアント302−1〜30
2−nが同時期に当該アプリケーションにアクセスする
と、先アクセス優先にて応答がなされ、クライアント側
の要求に十分応えられないという問題点が生じていた。
On the server 303 side, only one communication port is set corresponding to one application, and a plurality of clients 302-1 to 30-30 are set.
When 2-n accesses the application at the same time, a response is made with priority given to the first access, and there has been a problem that it is not possible to sufficiently respond to a request from the client side.

【0006】本発明はこのような従来のクライアント/
サーバシステムが有する問題点を解決せんとしてなされ
たもので、その目的は、サーバ側のアプリケーションの
変更にフレキシブルに対応することができるクライアン
ト/サーバシステムを提供することである。また、他の
目的は、サーバのアプリケーションに対するアクセスに
適切に応答し得るクライアント/サーバシステムを提供
することである。
The present invention relates to such a conventional client /
The purpose of the present invention is to provide a client / server system that can flexibly respond to changes in server-side applications. Another object is to provide a client / server system that can appropriately respond to access to an application of a server.

【0007】[0007]

【課題を解決するための手段】本発明の請求項1に記載
のクライアント/サーバシステムは、ネットワークを介
してクライアントとサーバとが通信を行うクライアント
/サーバシステムであり、上記サーバには、サービスの
開始要求及び終了要求を受けるためのマスタポートと、
サービスを行うための通信ポートとが個別に設定される
と共に、上記マスタポートには、サービスの開始要求に
応えて使用すべき通信チャネル番号をクライアントへ通
知する通信マネージャが備えられており、上記クライア
ントには、上記通信マネージャにより通知された番号の
通信チャネルに対してアクセスしてサービスを受けるこ
とを可能とするインタフェースが備えられていることを
特徴とする。これによって、サービスの開始要求と終了
要求は1つのマスタポートに対して行うが、サーバのサ
ービスを受けるときの通信ポートの番号が通知され、こ
の通信ポートを使用してサービスを受けることができ、
クライアント側において予めサービスを受けるための通
信ポート番号を知っておく必要がない。
A client / server system according to a first aspect of the present invention is a client / server system in which a client and a server communicate with each other via a network. A master port for receiving start and end requests;
A communication port for performing a service is individually set, and the master port includes a communication manager for notifying a client of a communication channel number to be used in response to a service start request. Is provided with an interface capable of accessing a communication channel of the number notified by the communication manager to receive a service. As a result, the service start request and the service end request are made to one master port, but the number of the communication port for receiving the service of the server is notified, and the service can be received using this communication port.
There is no need for the client to know in advance the communication port number for receiving the service.

【0008】本発明の請求項2に記載のクライアント/
サーバシステムでは、サーバに、少なくとも1つのアプ
リケーションロードモジュールが記憶されたロードモジ
ュール記憶手段と、サービスに対応して、使用する通信
ポートの数と、対応するロードモジュールの記憶アドレ
スとが記憶されているサーバプロセス管理情報記憶手段
とが備えられ、通信マネージャは、初期起動時に上記サ
ーバプロセス管理情報記憶手段の情報に基づき、使用通
信ポート数分のサーバプロセスを生成すると共に、生成
したサーバプロセスに対して割り当てる通信ポート番号
を通知して、当該通信ポートを使用して到来するクライ
アントからのアクセス待ち状態とさせることを特徴とす
る。これによって、初期起動時に所定数のサーバプロセ
スが生成され、通信ポートとの対応付けがなされ、通信
ポートを使用して到来するアクセスに応えることができ
る。
[0008] The client / client according to claim 2 of the present invention.
In the server system, the server stores load module storage means storing at least one application load module, the number of communication ports to be used, and the storage address of the corresponding load module corresponding to the service. A server process management information storage unit, wherein the communication manager generates server processes for the number of used communication ports based on the information in the server process management information storage unit at the time of initial startup, and The communication port number to be assigned is notified, and an access from a client arriving using the communication port is waited. As a result, a predetermined number of server processes are generated at the time of initial startup, are associated with communication ports, and can respond to incoming access using the communication ports.

【0009】本発明の請求項3に記載のクライアント/
サーバシステムでは、サーバに、各通信ポートの番号に
対応して、割り当てられたサービス名と、使用中のクラ
イアント名とを記憶するための通信状態管理情報記憶手
段が備えられ、通信マネージャは、クライアントからサ
ービスの開始要求があると、上記通信状態管理情報記憶
手段の情報に基づき使用可能な通信ポートの番号を検索
して上記クライアントへ当該番号を通知し、これに対応
して上記通信状態管理情報記憶手段の情報の書き換えを
行うことを特徴とする。これによって、クライアントか
らサービスの開始要求があると、使用可能な通信ポート
の番号を検索して上記クライアントへ当該番号が通知さ
れ、通信ポートを使用してサーバプロセスのサービスを
受けることができる。
According to the third aspect of the present invention, the client /
In the server system, the server is provided with communication status management information storage means for storing the assigned service name and the name of the client being used, corresponding to the number of each communication port. When there is a service start request from the communication state management information storage means, a search is made for the number of available communication ports based on the information in the communication state management information storage means, and the number is notified to the client. It is characterized in that the information in the storage means is rewritten. Thus, when a service start request is issued from a client, the number of an available communication port is searched, the number is notified to the client, and the service of the server process can be received using the communication port.

【0010】本発明の請求項4に記載のクライアント/
サーバシステムでは、通信マネージャが、サーバプロセ
スの変更があった場合には、新たなサーバプロセスを起
動すると共に、起動中の対応するサーバプロセスを停止
し、通信ポートの変更及び通信状態管理情報記憶手段の
情報を変更することを特徴とする。これによって、サー
バにおけるアプリケーションの変更に対応してサーバプ
ロセスの変更があった場合に、クライアント側に通知す
るなどの処理を行うことなくサーバ側のみで対応できる
ことになる。
[0010] The client / device according to claim 4 of the present invention.
In the server system, when the server manager changes the server process, the communication manager starts a new server process, stops the corresponding server process being started, changes the communication port, and stores the communication state management information storage means. Is changed. As a result, when the server process is changed in response to the application change in the server, only the server side can deal with the change without performing a process such as notifying the client side.

【0011】本発明の請求項5に記載のクライアント/
サーバシステムでは、通信マネージャが、サービスの終
了要求を受け取ると、対応して通信状態管理情報記憶手
段の情報の書き換えを行うと共に、対応するサーバプロ
セスへ通知を行ってサービスを停止させることを特徴と
する。これによって、クライアントからのサービスの終
了要求を受けて対応するサーバプロセスからのサービス
停止を実現することができる。
[0011] The client / client according to claim 5 of the present invention.
In the server system, when the communication manager receives the service termination request, it rewrites the information in the communication state management information storage means in response to the request and notifies the corresponding server process to stop the service. I do. As a result, the service termination from the corresponding server process can be realized in response to the service termination request from the client.

【0012】本発明の請求項6に記載のクライアント/
サーバシステムでは、クライアントで、サービスの開始
要求及び終了要求を通信マネージャに対して送出するた
めのマスタポートと、サーバプロセスに対してアクセス
を行うための通信ポートとが設定されることを特徴とす
る。これによって、サービスの開始要求及び終了要求を
マスタポートを使用してサーバへ送り、通知される通信
ポートの番号に対応する通信ポートを使用してサーバプ
ロセスをアクセスすることができる。
The client / client according to claim 6 of the present invention.
A server system is characterized in that a client sets a master port for sending a service start request and a service end request to a communication manager and a communication port for accessing a server process. . This makes it possible to send a service start request and a service end request to the server using the master port, and access the server process using the communication port corresponding to the notified communication port number.

【0013】[0013]

【発明の実施の形態】以下添付図面を参照して、本発明
の実施の形態に係るクライアント/サーバシステムを説
明する。各図において、同一の構成要素には同一の符号
を付し、重複する説明を省略する。図1には、本発明の
実施の形態に係るクライアント/サーバシステムが示さ
れている。クライアント/サーバシステムは、ネットワ
ーク1を介して複数のクライアント2−1〜2−nとサ
ーバ3とが通信を行うように構成されている。クライア
ント2−1〜2−nは、パーソナルコンピュータまたは
ワークステーション等により構成され、サーバ3はワー
クステーションまたはそれ以上の機能・性能のコンピュ
ータにより構成される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A client / server system according to an embodiment of the present invention will be described below with reference to the accompanying drawings. In the respective drawings, the same components are denoted by the same reference numerals, and redundant description will be omitted. FIG. 1 shows a client / server system according to an embodiment of the present invention. The client / server system is configured so that a plurality of clients 2-1 to 2-n communicate with a server 3 via a network 1. The clients 2-1 to 2-n are configured by a personal computer or a workstation, and the server 3 is configured by a workstation or a computer having functions and performances higher than the workstation.

【0014】クライアント2−1〜2−nには、クライ
アントアプリケーションと、このアプリケーションが通
信を行う場合やデータのアクセスを行う場合などの基本
的な処理を行うためのインタフェースであるクライアン
トAPI(アプリケーション・プログラム・インタフェ
ース)が備えられている。クライアントアプリケーショ
ンはクライアントAPIを使用して、マスタポートまた
は所定番号(ここではa)の通信ポートを設定使用して
通信を行う。つまり、サービスの開始要求と終了要求を
発する場合には、マスタポートを使用して要求の送信を
行い、サービスを受ける場合には所定番号の通信ポート
を使用して通信を行う。マスタポートの番号(ポート番
号)は、予めクライアント2−1〜2−nとサーバ3に
共通に設定されている。
The clients 2-1 to 2-n are provided with a client application (client API (application API)) which is an interface for performing basic processing such as when the application performs communication and data access. Program interface). The client application communicates by using the client API and setting and using a master port or a communication port of a predetermined number (here, a). That is, when issuing a service start request and a service end request, the request is transmitted using the master port, and when receiving the service, communication is performed using a communication port of a predetermined number. The master port number (port number) is previously set commonly to the clients 2-1 to 2-n and the server 3.

【0015】一方、サーバ3には、少なくとも1つのア
プリケーションロードモジュールが記憶されたロードモ
ジュール記憶手段4と、サービスに対応して、使用する
通信ポートの数と、対応するロードモジュールの記憶ア
ドレスとが記憶されているサーバプロセス管理情報記憶
手段5と、各通信ポートの番号に対応して、割り当てら
れたサービス名と、使用中のクライアント名とを記憶す
るための通信状態管理情報記憶手段6と、クライアント
2−1〜2−nからのサービス開始要求と終了要求に応
える通信マネージャが備えられている。また、サーバ3
には、初期起動時に通信マネージャにより起動されるサ
ーバアプリケーションプロセス(サーバプロセス、また
は、プロセスに同じ)が備えられると共に、サーバアプ
リケーションと、このアプリケーションが通信を行う場
合やデータのアクセスを行う場合などの基本的な処理を
行うためのインタフェースであるサーバAPI(アプリ
ケーション・プログラム・インタフェース)が備えられ
る。
On the other hand, the server 3 stores load module storage means 4 storing at least one application load module, the number of communication ports to be used, and the storage address of the corresponding load module corresponding to the service. A stored server process management information storage means 5, a communication state management information storage means 6 for storing a service name assigned in correspondence with a number of each communication port, and a client name in use; A communication manager is provided for responding to service start and end requests from clients 2-1 to 2-n. Server 3
Is provided with a server application process (the same as the server process or the same process) that is started by the communication manager at the time of initial startup. In addition, when the server application communicates with the application or accesses data. A server API (application program interface), which is an interface for performing basic processing, is provided.

【0016】上記のようなクライアント/サーバシステ
ムは、例えば、図9に示すシステムとして実現される。
この図9のシステムは、プラント10の情報をサーバで
あるデータサーバ3がプロセスDB(データ・ベース)
11を使用して管理し、このデータサーバ3からネット
ワークである情報LAN1を介して複数のクライアント
2−1〜2−nが情報を得て様々な処理を行うように構
成されている。
The client / server system as described above is realized, for example, as a system shown in FIG.
In the system shown in FIG. 9, the data server 3 serving as a server stores information on the plant 10 in a process DB (data base).
The client is managed using the data server 3 and a plurality of clients 2-1 to 2-n obtain information from the data server 3 via an information LAN 1 and perform various processes.

【0017】上記のクライアント/サーバシステムにお
いて、サーバ3のサーバプロセス管理情報記憶手段5
に、図10に示されるように、サービス名Aに対応し
て、サーバアプリケーションAの格納場所(アドレス)
と、使用ポート数10が記憶されているものとする。サ
ーバ3の通信マネージャは、図2に示すようなフローチ
ャートのプログラムにより動作するので、これを説明す
る。
In the above client / server system, the server process management information storage means 5 of the server 3
10, the storage location (address) of the server application A corresponding to the service name A, as shown in FIG.
And 10 used ports are stored. The communication manager of the server 3 operates according to the program shown in the flowchart in FIG.

【0018】サーバ3が起動されると、初期起動時処理
を行う(S1)。初期起動時処理は詳細には、図3に示
される通りである。つまり、サーバプロセス管理情報記
憶手段5に記憶されている保管場所に基づきロードモジ
ュール記憶手段4から対応するアプリケーションロード
モジュールを読み出し使用ポート数分、つまり、10ポ
ート分のサーバプロセスを生成・起動する(S7)。そ
して、生成した各プロセスにそれぞれが使用すべき通信
ポートの番号(ここでは、1000〜1009)を通知
し、それぞれの起動パラメータにセットさせる(S
8)。この結果、各プロセスは、図10に示すように、
ポート番号1000〜1009のそれぞれの通信ポート
に対するクライアント2−12−nからの要求の到来を
待つ状態に入る。
When the server 3 is started, an initial startup process is performed (S1). The process at the time of the initial startup is shown in detail in FIG. That is, the corresponding application load modules are read out from the load module storage unit 4 based on the storage location stored in the server process management information storage unit 5, and the server processes for the number of used ports, that is, 10 ports are generated and activated ( S7). Then, the generated process is notified of the number of the communication port to be used (here, 1000 to 1009), and the process is set to the respective startup parameters (S
8). As a result, as shown in FIG.
The system enters a state of waiting for a request from the client 2-12-n for each communication port of the port numbers 1000 to 1009.

【0019】サーバ3の通信マネージャにおいて、初期
起動時処理(S1)が終了すると、クライアントからの
要求の有無を検出する(S2)。ここで、クライアント
からの要求を検出すると、クライアント要求処理を実行
する(S3)。具体的には、クライアントは図6のフロ
ーチャートに示されるように動作を行い、通信マネージ
ャは図5のフローチャートに示されるように処理を行
う。まず、クライアントのクライアントアプリケーショ
ンAの指示により、クライアントAPIがマスタポート
を使用してサービスAの開始(オープン)要求を通信マ
ネージャへ通知する(S21)。これに対し、通信マネ
ージャはマスタポートによりクライアントが使用したい
サービス名を受け取り(S14)、通信状態管理情報記
憶手段6を検索してクライアントに使用されていないポ
ートを検出し、担当プロセスを選択する。ここに、通信
状態管理情報記憶手段6には、図8に詳細に示すような
情報が記憶されている。つまり、サービス名と通信ポー
ト番号とに対応して、使用中のクライアント名が記憶さ
れる。クライアント名が記憶されていないときには、未
使用であることを示す。そして、担当プロセスを選択す
ると、これに対応する未使用の通信ポートの番号をマス
タポートを使用してクライアントへ通知すると共に通信
状態管理情報を書き換える(S16)。つまり、クライ
アント名を書き込み、当該通信ポートが使用中であるこ
とを示す。
When the communication manager of the server 3 completes the initial startup processing (S1), it detects whether or not there is a request from the client (S2). Here, when a request from the client is detected, a client request process is executed (S3). Specifically, the client performs an operation as shown in the flowchart of FIG. 6, and the communication manager performs processing as shown in the flowchart of FIG. First, in response to an instruction from the client application A of the client, the client API uses the master port to notify a start (open) request of the service A to the communication manager (S21). On the other hand, the communication manager receives the service name that the client wants to use from the master port (S14), searches the communication state management information storage unit 6 to detect a port not used by the client, and selects a process in charge. Here, the communication state management information storage means 6 stores information as shown in detail in FIG. That is, the name of the client in use is stored corresponding to the service name and the communication port number. When the client name is not stored, it indicates that it is not used. When the assigned process is selected, the corresponding unused communication port number is notified to the client using the master port, and the communication state management information is rewritten (S16). That is, the client name is written, indicating that the communication port is in use.

【0020】上記に対応して、クライアントのクライア
ントアプリケーションAは通知された使用すべき通信ポ
ートの番号を受け取り(S22)、クライアントAPI
により当該通信ポートを使用してサーバプロセスにアク
セスして処理要求を送信する(S23)。これに応えて
サーバアプリケーションプロセスAは処理を行って結果
を当該通信ポートを使用して返送する。このように構成
されているため、サーバ3は、クライアントからのサー
ビス開始要求と終了要求とだけを、マスタポートを使用
して受け、実際に通信で使用する通信ポートを知らせる
ことから、短い通信情報の送受を1つのマスタポートに
よって効率良く処理できる。また、通信ポート数は、予
想されるサービス要求の量に応じて設定することができ
るから、複数のクライアントからの同一サービス要求が
同時にあった場合にも十分に対処できる。図10の例で
は、10台のクライアント(クライアント名;No.1
〜No.10)が全てサービスAの要求をサーバ3に対
して行って受け入れられた場合を示している。
In response to the above, the client application A of the client receives the notified communication port number to be used (S22).
To access the server process using the communication port to transmit a processing request (S23). In response, the server application process A performs processing and returns a result using the communication port. With this configuration, the server 3 receives only the service start request and the end request from the client using the master port, and notifies the communication port actually used for communication. Can be efficiently processed by one master port. Further, since the number of communication ports can be set according to the expected amount of service requests, it is possible to sufficiently cope with a case where the same service request is issued from a plurality of clients at the same time. In the example of FIG. 10, ten clients (client name; No. 1)
-No. 10) shows a case where all requests for service A are made to the server 3 and accepted.

【0021】上記のようにして、クライアントがサーバ
プロセスから処理要求に係る結果を受け取ると、クライ
アントはアクセス要求終了となる(S24)。そして、
クライアントはクローズ(終了)要求を使用していた通
信ポートの番号と共にマスタポートを使用して通信マネ
ージャへ送出する(S25)。一方、図2に示されるよ
うに、通信マネージャはクローズ要求の有無を検出して
おり(S6)、クローズ要求を検出すると図7に示すよ
うな処理を行う。つまり、クローズ要求を使用していた
通信ポートの番号と共に通信マネージャが受け取り(S
26)、通信管理情報記憶手段6の対応する記憶エリア
から当該クライアント名を削除すると共に(S27)、
通信ポートの番号のサーバプロセスへ通知し、サービス
を停止させる(S28)。
As described above, when the client receives the result of the processing request from the server process, the client ends the access request (S24). And
The client sends the request to the communication manager using the master port together with the number of the communication port that used the close (end) request (S25). On the other hand, as shown in FIG. 2, the communication manager detects the presence or absence of a close request (S6), and upon detecting the close request, performs a process as shown in FIG. In other words, the communication manager receives the communication request together with the communication port number that used the close request (S
26), while deleting the client name from the corresponding storage area of the communication management information storage means 6 (S27),
It notifies the server process of the communication port number and stops the service (S28).

【0022】また、図2に示されるように、サーバ3の
通信マネージャはシステムが稼働中にサーバプロセスの
追加変更等の管理情報変更があるか否かを検出している
(S4)。そして、管理情報の変更があると、管理情報
変更処理を実行する(S5)。例えば、図10に示され
るようなシステムへ新しくサービスBを追加するため、
サーバプロセス管理情報記憶手段5へ図11に示される
情報を追加し(例えば、キー入力等により)、また、ロ
ードモジュール記憶手段4にサーバアプリケーションB
用のロードモジュールをロードする。
As shown in FIG. 2, the communication manager of the server 3 detects whether there is a change in management information such as an additional change of a server process while the system is operating (S4). Then, when there is a change in the management information, a management information change process is executed (S5). For example, to add a new service B to the system shown in FIG.
The information shown in FIG. 11 is added to the server process management information storage means 5 (for example, by key input) and the server application B is stored in the load module storage means 4.
Load the load module for

【0023】このようにサーバプロセス管理情報記憶手
段5の情報が変更されると、サーバプロセス管理情報記
憶手段5に記憶されているアプリケーションBの保管場
所に基づきロードモジュール記憶手段4から対応するア
プリケーションロードモジュールを読み出し使用ポート
数分、つまり、10ポート分のサーバプロセスを生成・
起動する。そして、生成した各プロセスにそれぞれが使
用すべき通信ポートの番号(ここでは、2000〜20
09)を通知し、それぞれの起動パラメータにセットさ
せる。この結果、各プロセスは、図11に示すように、
ポート番号2000〜2009のそれぞれの通信ポート
に対する要求の到来を待つ状態に入る。このようにし
て、サービスAと共にサービスBを提供することができ
る。
When the information in the server process management information storage means 5 is changed in this way, the corresponding application load is loaded from the load module storage means 4 based on the storage location of the application B stored in the server process management information storage means 5. Reads the module and creates server processes for the number of ports used, that is, 10 ports.
to start. The number of the communication port to be used for each generated process (here, 2000 to 20)
09) and set it to the respective start parameters. As a result, as shown in FIG.
The system enters a state of waiting for a request for a communication port of each of the port numbers 2000 to 2009. Thus, the service B can be provided together with the service A.

【0024】また、サービスの交替(バージョンアッ
プ)が行われた場合には、図4に示すように処理がなさ
れる。つまり、上記サーバアプリケーションBの場合と
同様に、サーバプロセス管理情報記憶手段5に記憶され
ている新アプリケーションの保管場所に基づきロードモ
ジュール記憶手段4から対応するアプリケーションロー
ドモジュールを読み出し、新サーバプロセスを起動する
(S11)。そして、起動中(旧)のサーバプロセスへ
終了要求を発行して旧サービスを停止する(S12)。
更に、生成した各プロセスにそれぞれが使用すべき通信
ポートの番号を通知し、それぞれの起動パラメータにセ
ットさせると共に、通信状態管理情報記憶手段6の情報
を変更する(S13)。なお、サービスの削除を行う場
合には、上記のステップS12のみの実行を行う。つま
り、サーバプロセスへ終了要求を発行してサービスの停
止を行うことになる。
When a service is replaced (upgraded), processing is performed as shown in FIG. That is, as in the case of the server application B, the corresponding application load module is read from the load module storage unit 4 based on the storage location of the new application stored in the server process management information storage unit 5, and the new server process is started. (S11). Then, an end request is issued to the running (old) server process to stop the old service (S12).
Furthermore, the generated process is notified of the number of the communication port to be used by each of the processes, and is set in each of the startup parameters, and the information of the communication state management information storage unit 6 is changed (S13). When deleting a service, only the above-described step S12 is performed. In other words, a termination request is issued to the server process to stop the service.

【0025】[0025]

【発明の効果】以上説明したように本発明の請求項1に
記載のクライアント/サーバシステムによれば、サービ
スの開始要求と終了要求は1つのマスタポートに対して
行うが、サーバのサービスを受けるときの通信ポートの
番号が通知され、この通信ポートを使用してサービスを
受けることができ、クライアント側において予めサービ
スを受けるための通信ポート番号を知っておく必要がな
いので、サービスの変更・追加等をサーバ側のみにおい
て実行でき効率的である。
As described above, according to the client / server system of the first aspect of the present invention, a service start request and a service end request are made to one master port, but the service of the server is received. The number of the communication port at the time is notified, the service can be received using this communication port, and it is not necessary for the client to know in advance the communication port number for receiving the service, so the service can be changed or added. Etc. can be executed only on the server side, which is efficient.

【0026】以上説明したように本発明の請求項2に記
載のクライアント/サーバシステムによれば、初期起動
時に所定数のサーバプロセスが生成され、通信ポートと
の対応付けがなされ、通信ポートを使用して到来するア
クセスに応えることができるので、必要数の通信ポート
を設定することにより複数のクライアントからの同一内
容のサービス要求を同時に処理可能である。
As described above, according to the client / server system of the second aspect of the present invention, a predetermined number of server processes are generated at the time of initial startup, are associated with communication ports, and use the communication ports. Therefore, by setting the required number of communication ports, service requests of the same contents from a plurality of clients can be simultaneously processed.

【0027】以上説明したように本発明の請求項3に記
載のクライアント/サーバシステムによれば、クライア
ントからサービスの開始要求があると、使用可能な通信
ポートの番号を検索して上記クライアントへ当該番号が
通知され、通信ポートを使用してサーバプロセスのサー
ビスを受けることができるので、複数の通信ポートを自
在に割り当てて効率の良いサービスの割り当てを行うこ
とができる。
As described above, according to the client / server system of the third aspect of the present invention, when there is a service start request from a client, an available communication port number is searched and the client is notified of the request. Since the number is notified and the service of the server process can be received using the communication port, a plurality of communication ports can be freely allocated to perform efficient service allocation.

【0028】以上説明したように本発明の請求項4に記
載のクライアント/サーバシステムによれば、サーバに
おけるアプリケーションの変更に対応してサーバプロセ
スの変更があった場合に、クライアント側に通知するな
どの処理を行うことなくサーバ側のみで対応でき便利で
ある。
As described above, according to the client / server system of the fourth aspect of the present invention, when there is a change in the server process in response to a change in the application in the server, the client is notified of the change. This is convenient because only the server can respond without performing the above processing.

【0029】以上説明したように本発明の請求項5に記
載のクライアント/サーバシステムによれば、クライア
ントからのサービスの終了要求を通信マネージャで受け
て対応するサーバプロセスからのサービス停止を実現す
ることができるので、サーバプロセスをクライアントに
割り当てる処理を通信マネージャに一元化でき、適切な
サービスの提供が可能である。
As described above, according to the client / server system according to the fifth aspect of the present invention, a service termination request from a client is received by a communication manager and a service stop from a corresponding server process is realized. Therefore, the process of allocating the server process to the client can be centralized in the communication manager, and an appropriate service can be provided.

【0030】以上説明したように本発明の請求項6に記
載のクライアント/サーバシステムによれば、サービス
の開始要求及び終了要求をマスタポートを使用してサー
バへ送り、通知される通信ポートの番号に対応する通信
ポートを使用してサーバプロセスをアクセスすることが
できる。
As described above, according to the client / server system of the sixth aspect of the present invention, a service start request and a service end request are sent to the server using the master port, and the number of the communication port notified. The server process can be accessed using the communication port corresponding to.

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

【図1】本発明の実施の形態に係るクライアント/サー
バシステムの構成図。
FIG. 1 is a configuration diagram of a client / server system according to an embodiment of the present invention.

【図2】本発明の実施の形態に係るクライアント/サー
バシステムの動作を説明するためのフローチャート。
FIG. 2 is a flowchart for explaining the operation of the client / server system according to the embodiment of the present invention.

【図3】本発明の実施の形態に係るクライアント/サー
バシステムにおける初期起動時処理の動作を説明するた
めのフローチャート。
FIG. 3 is a flowchart illustrating an operation of an initial startup process in the client / server system according to the embodiment of the present invention.

【図4】本発明の実施の形態に係るクライアント/サー
バシステムにおける管理情報変更処理の動作を説明する
ためのフローチャート。
FIG. 4 is a flowchart for explaining the operation of management information change processing in the client / server system according to the embodiment of the present invention.

【図5】本発明の実施の形態に係るクライアント/サー
バシステムにおけるクライアント要求処理の動作を説明
するためのフローチャート。
FIG. 5 is a flowchart for explaining the operation of a client request process in the client / server system according to the embodiment of the present invention.

【図6】本発明の実施の形態に係るクライアント/サー
バシステムにおけるアクセス要求処理の動作を説明する
ためのフローチャート。
FIG. 6 is a flowchart for explaining an operation of an access request process in the client / server system according to the embodiment of the present invention.

【図7】本発明の実施の形態に係るクライアント/サー
バシステムにおける終了要求処理の動作を説明するため
のフローチャート。
FIG. 7 is a flowchart illustrating an operation of a termination request process in the client / server system according to the embodiment of the present invention.

【図8】本発明の実施の形態に係るクライアント/サー
バシステムにおける通信状態管理情報記憶手段内の情報
を示す図。
FIG. 8 is a diagram showing information in a communication state management information storage unit in the client / server system according to the embodiment of the present invention.

【図9】本発明の実施の形態に係るクライアント/サー
バシステムをプラント情報管理に適用した例を示す図。
FIG. 9 is a diagram showing an example in which the client / server system according to the embodiment of the present invention is applied to plant information management.

【図10】本発明の実施の形態に係るクライアント/サ
ーバシステムにおいてサービスAに対応するサーバプロ
セスが生成された場合に構成図。
FIG. 10 is a configuration diagram when a server process corresponding to service A is generated in the client / server system according to the embodiment of the present invention.

【図11】本発明の実施の形態に係るクライアント/サ
ーバシステムにおいてサービスA、Bに対応するサーバ
プロセスが生成された場合に構成図。
FIG. 11 is a configuration diagram when server processes corresponding to services A and B are generated in the client / server system according to the embodiment of the present invention.

【図12】従来のクライアント/サーバシステムの構成
図。
FIG. 12 is a configuration diagram of a conventional client / server system.

【図13】従来のクライアント/サーバシステムの構成
図。
FIG. 13 is a configuration diagram of a conventional client / server system.

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

1 ネットワーク 2−1〜2−
n クライアント 3 サーバ 4 ロードモ
ジュール記憶手段 5 サーバプロセス管理情報記憶手段 6 通信状態
管理情報記憶手段
1 network 2-1 to 2-
n client 3 server 4 load module storage means 5 server process management information storage means 6 communication state management information storage means

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ネットワークを介してクライアントとサ
ーバとが通信を行うクライアント/サーバシステムにお
いて、 上記サーバには、サービスの開始要求及び終了要求を受
けるためのマスタポートと、サービスを行うための通信
ポートとが個別に設定されると共に、上記マスタポート
には、サービスの開始要求に応えて使用すべき通信チャ
ネル番号をクライアントへ通知する通信マネージャが備
えられており、 上記クライアントには、上記通信マネージャにより通知
された番号の通信チャネルに対してアクセスしてサービ
スを受けることを可能とするインタフェースが備えられ
ていることを特徴とするクライアント/サーバシステ
ム。
1. A client / server system in which a client and a server communicate with each other via a network, wherein the server has a master port for receiving a service start request and a service end request, and a communication port for performing a service. Are individually set, and the master port is provided with a communication manager that notifies a client of a communication channel number to be used in response to a service start request. A client / server system provided with an interface that enables access to a communication channel of the notified number to receive a service.
【請求項2】 サーバには、 少なくとも1つのアプリケーションロードモジュールが
記憶されたロードモジュール記憶手段と、 サービスに対応して、使用する通信ポートの数と、対応
するロードモジュールの記憶アドレスとが記憶されてい
るサーバプロセス管理情報記憶手段とが備えられ、 通信マネージャは、初期起動時に上記サーバプロセス管
理情報記憶手段の情報に基づき、使用通信ポート数分の
サーバプロセスを生成すると共に、生成したサーバプロ
セスに対して割り当てる通信ポート番号を通知して、当
該通信ポートを使用して到来するクライアントからのア
クセス待ち状態とさせることを特徴とする請求項1に記
載のクライアント/サーバシステム。
2. The server stores a load module storing means storing at least one application load module, a number of communication ports to be used, and a storage address of the corresponding load module corresponding to the service. Communication manager generates server processes for the number of used communication ports based on the information of the server process management information storage unit at the time of initial startup, and 2. The client / server system according to claim 1, wherein a communication port number to be allocated to the client / server is notified, and an access from a client arriving using the communication port is waited.
【請求項3】 サーバには、 各通信ポートの番号に対応して、割り当てられたサービ
ス名と、使用中のクライアント名とを記憶するための通
信状態管理情報記憶手段が備えられ、 通信マネージャは、クライアントからサービスの開始要
求があると、上記通信状態管理情報記憶手段の情報に基
づき使用可能な通信ポートの番号を検索して上記クライ
アントへ当該番号を通知し、これに対応して上記通信状
態管理情報記憶手段の情報の書き換えを行うことを特徴
とする請求項1または2に記載のクライアント/サーバ
システム。
3. The server is provided with communication state management information storage means for storing an assigned service name and an in-use client name corresponding to each communication port number. When there is a service start request from the client, a number of an available communication port is searched based on the information of the communication state management information storage means, and the number is notified to the client. 3. The client / server system according to claim 1, wherein information in the management information storage unit is rewritten.
【請求項4】 通信マネージャは、 サーバプロセスの変更があった場合には、新たなサーバ
プロセスを起動すると共に、起動中の対応するサーバプ
ロセスを停止し、通信ポートの変更及び通信状態管理情
報記憶手段の情報を変更することを特徴とする請求項1
乃至3のいずれか1項に記載のクライアント/サーバシ
ステム。
4. When there is a change in the server process, the communication manager starts a new server process, stops the corresponding server process being started, changes the communication port, and stores the communication state management information. 2. The information of a means is changed.
The client / server system according to any one of claims 1 to 3.
【請求項5】 通信マネージャは、 サービスの終了要求を受け取ると、対応して通信状態管
理情報記憶手段の情報の書き換えを行うと共に、対応す
るサーバプロセスへ通知を行ってサービスを停止させる
ことを特徴とする請求項1乃至4のいずれか1項に記載
のクライアント/サーバシステム。
5. The communication manager, upon receiving the service termination request, rewrites the information in the communication state management information storage means in response and notifies the corresponding server process to stop the service. The client / server system according to any one of claims 1 to 4, wherein
【請求項6】 クライアントには、 サービスの開始要求及び終了要求を通信マネージャに対
して送出するためのマスタポートと、 サーバプロセスに対してアクセスを行うための通信ポー
トとが設定されることを特徴とする請求項1乃至5のい
ずれか1項に記載のクライアント/サーバシステム。
6. A client is provided with a master port for sending a service start request and a service end request to a communication manager and a communication port for accessing a server process. The client / server system according to any one of claims 1 to 5, wherein
JP8296344A 1996-11-08 1996-11-08 Client/server system Pending JPH10143455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8296344A JPH10143455A (en) 1996-11-08 1996-11-08 Client/server system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8296344A JPH10143455A (en) 1996-11-08 1996-11-08 Client/server system

Publications (1)

Publication Number Publication Date
JPH10143455A true JPH10143455A (en) 1998-05-29

Family

ID=17832340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8296344A Pending JPH10143455A (en) 1996-11-08 1996-11-08 Client/server system

Country Status (1)

Country Link
JP (1) JPH10143455A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004355621A (en) * 2003-05-29 2004-12-16 Marconi Intellectual Property (Ringfence) Inc Update of dynamic port
JP2009003525A (en) * 2007-06-19 2009-01-08 Toshiba Corp Information communication apparatus and medical information apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06243077A (en) * 1993-02-19 1994-09-02 Hitachi Ltd Distributed transaction processing system
JPH06332833A (en) * 1993-05-25 1994-12-02 Nec Corp Server operation system
JPH06332834A (en) * 1993-05-25 1994-12-02 Hitachi Ltd Remote procedure calling method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06243077A (en) * 1993-02-19 1994-09-02 Hitachi Ltd Distributed transaction processing system
JPH06332833A (en) * 1993-05-25 1994-12-02 Nec Corp Server operation system
JPH06332834A (en) * 1993-05-25 1994-12-02 Hitachi Ltd Remote procedure calling method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004355621A (en) * 2003-05-29 2004-12-16 Marconi Intellectual Property (Ringfence) Inc Update of dynamic port
JP2009003525A (en) * 2007-06-19 2009-01-08 Toshiba Corp Information communication apparatus and medical information apparatus

Similar Documents

Publication Publication Date Title
JP7085565B2 (en) Intelligent thread management across isolated network stacks
US5526492A (en) System having arbitrary master computer for selecting server and switching server to another server when selected processor malfunctions based upon priority order in connection request
EP0343820B1 (en) Temporary state preservation for a distributed file service
US5832191A (en) Method and apparatus for automatically enabling communication with a network printer
US5805827A (en) Distributed signal processing for data channels maintaining channel bandwidth
US6847975B2 (en) Proxy processing method
US6145126A (en) Apparatus and method for installing software and recording medium storing program for realizing the method
US8250176B2 (en) File sharing method and file sharing system
JP3554134B2 (en) Network connection path search method, computer, network system, and storage medium.
CN110909030A (en) Information processing method and server cluster
WO2024078634A1 (en) Service management method, system and apparatus, and electronic device and storage medium
JPH10143455A (en) Client/server system
JPH08307451A (en) Data transfer system and method
JP2636740B2 (en) Distributed file system
JPH1069467A (en) Data access system for server in distributed computer system
JP3458384B2 (en) Communication processing method
WO2016192195A1 (en) File download method for dual system and device thereof
JPH06295289A (en) Booting method for plural computers
JP3251677B2 (en) Communication control device and communication control method
JP2626508B2 (en) Client-to-server communication method
KR101110459B1 (en) Apparatus and method of IP sharing
JP2929995B2 (en) Asynchronous transfer mode network connection method for existing telephone network connection terminals
JP3409295B2 (en) Operation control method in service control node
JP3236158B2 (en) Network processing method for multiple host systems
JP2003244249A (en) High speed file transfer method and system using multiple networks, terminal configuring the system, and its control method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20031216