KR100278303B1 - Communication method between multiple access client and single access server - Google Patents

Communication method between multiple access client and single access server Download PDF

Info

Publication number
KR100278303B1
KR100278303B1 KR1019980061634A KR19980061634A KR100278303B1 KR 100278303 B1 KR100278303 B1 KR 100278303B1 KR 1019980061634 A KR1019980061634 A KR 1019980061634A KR 19980061634 A KR19980061634 A KR 19980061634A KR 100278303 B1 KR100278303 B1 KR 100278303B1
Authority
KR
South Korea
Prior art keywords
client
thread
server
event
response message
Prior art date
Application number
KR1019980061634A
Other languages
Korean (ko)
Other versions
KR20000045106A (en
Inventor
전종익
Original Assignee
이계철
한국전기통신공사
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 이계철, 한국전기통신공사 filed Critical 이계철
Priority to KR1019980061634A priority Critical patent/KR100278303B1/en
Publication of KR20000045106A publication Critical patent/KR20000045106A/en
Application granted granted Critical
Publication of KR100278303B1 publication Critical patent/KR100278303B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1091Interfacing with client-server systems or between P2P systems

Abstract

1. 청구범위에 기재된 발명이 속한 기술분야1. TECHNICAL FIELD OF THE INVENTION

본 발명은 다중접속 클라이언트와 단일접속 서버간의 통신방법에 관한 것임.The present invention relates to a communication method between a multiple access client and a single access server.

2. 발명이 해결하려고 하는 기술적 과제2. The technical problem to be solved by the invention

본 발명은, 다중접속이 요구되는 클라이언트와 단일접속이 요구되는 서버 구조를 가진 상이한 통신시스템 환경에서 클라이언트와 서버 중간에 매개 역할을 하는 프로세스를 두어 통신이 가능하도록 하기 위한 다중접속 클라이언트와 단일접속 서버간의 통신방법을 제공하고자 함.The present invention provides a multi-access client and a single-access server to enable communication by placing a process that acts as an intermediary between the client and the server in a different communication system environment having a server structure requiring a multi-connection and a server requiring a single connection. To provide a communication method between them.

3. 발명의 해결방법의 요지3. Summary of Solution to Invention

본 발명은, 제1 및 제2스레드를 생성하는 단계; 클라이언트의 다수 클라이언트 스레드의 다중 접속 요청에 따라, 제1스레드가 다수 클라이언트 스레드에 대응되는 제3스레드를 생성하고, 제3스레드에서 하나의 이벤트를 생성한 후에 전송메시지 내부에 이벤트값을 포함시켜 서버로 전송하는 단계; 및 서버로부터의 결과에 따라, 제2스레드가 응답메시지 내부의 이벤트값으로 이벤트를 발생시켜 제3스레드중 해당 스레드가 결과를 받아서 클라이언트로 응답메시지를 전송하는 단계를 포함함.The present invention comprises the steps of creating a first and a second thread; According to the multiple connection request of the client's multiple client threads, the first thread generates a third thread corresponding to the multiple client thread, generates one event in the third thread, and then includes the event value in the transmission message. Transmitting to; And according to the result from the server, the second thread generates an event with an event value inside the response message, and the corresponding thread among the third threads receives the result and sends a response message to the client.

4. 발명의 중요한 용도4. Important uses of the invention

본 발명은 이질적인 통신 환경에서의 정보 전송 및 확인 등에 이용됨.The present invention is used for information transmission and confirmation in heterogeneous communication environment.

Description

다중접속 클라이언트와 단일접속 서버간의 통신방법Communication method between multiple access client and single access server

본 발명은 다중접속이 요구되는 클라이언트와 단일접속이 요구되는 서버 구조를 가진 상이한 통신시스템 환경에서 클라이언트와 서버 중간에 매개 역할을 하는 프로세스를 두어 통신이 가능하도록 한 다중접속 클라이언트와 단일접속 서버간의 통신방법 및 그를 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체에 관한 것이다.The present invention provides a communication between a multi-access client and a single-access server to enable communication by placing a process that acts as an intermediary between the client and the server in a different communication system environment having a server structure requiring a multi-connection and a server requiring a single connection. A computer readable recording medium having recorded thereon a method and a program for realizing the same.

본 발명에 사용되는 용어를 정의하면 다음과 같다.The terms used in the present invention are defined as follows.

이벤트(Event)는 컴퓨터에서 발생하는 입출력 행위이다.An event is an input / output activity that occurs on a computer.

스레드(Thread)는 하나의 프로세스를 더 작은 단위로 나눈 단위이다.A thread is a unit of process divided into smaller units.

클라이언트(Client)는 하나 이상의 프로세스들 간에 통신을 위한 접속을 요구하는 프로세스이다.A client is a process that requires a connection for communication between one or more processes.

서버(Server)는 하나 이상의 프로세스들간에 통신을 위한 접속을 제공해 주는 프로세스이다.A server is a process that provides a connection for communication between one or more processes.

일반적으로, 클라이언트-서버 구조의 통신시스템 환경에서 통신을 위한 방법은 일대일, 다대일, 그리고 다대다 구조로서 서버와 클라이언트가 직접 통신할 수 있도록 서버는 클라이언트의 성격에 맞추어 접속 환경을 제공하므로써 서로 일치된 규약을 갖고서 제공한 것이라 할 수 있다.In general, in a client-server communication system, the methods for communication are one-to-one, many-to-one, and many-to-many, so that the server can be connected to each other by providing a connection environment according to the characteristics of the client so that the server and the client can communicate directly. It can be said to have been provided with a written convention.

그러나, 이러한 구조는 클라이언트가 다중접속을 필요로 하고 서버가 단일 접속만을 제공하는 각각 상이한 접속 방법을 제공하는 종래의 클라이언트-서버 환경에서는 사용할 수 없는 문제점이 있었다.However, this structure has a problem that cannot be used in the conventional client-server environment in which the client requires multiple accesses and the server provides different connection methods, each providing only a single connection.

상기한 바와 같은 문제점을 해결하기 위하여 안출된 본 발명은, 다중접속이 요구되는 클라이언트와 단일접속이 요구되는 서버 구조를 가진 상이한 통신시스템 환경에서 클라이언트와 서버 중간에 매개 역할을 하는 프로세스를 두어 통신이 가능하도록 하기 위한 다중접속 클라이언트와 단일접속 서버간의 통신방법 및 그를 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공하는데 그 목적이 있다.In order to solve the problems described above, the present invention provides a communication between the client and the server in a different communication system environment having a client structure requiring multiple access and a server structure requiring a single access. It is an object of the present invention to provide a computer-readable recording medium that records a communication method between a multi-connection client and a single-connection server for enabling the program, and a program for realizing the same.

도 1 은 본 발명이 적용되는 하드웨어 시스템의 구성 예시도.1 is an exemplary configuration diagram of a hardware system to which the present invention is applied.

도 2 는 본 발명에 따른 다중접속 클라이언트와 단일접속 서버간의 통신방법에 대한 일실시예 설명도.2 is a diagram illustrating an embodiment of a communication method between a multiple access client and a single access server according to the present invention;

도 3 은 본 발명에 따른 다중접속 클라이언트와 단일접속 서버간의 통신방법에 대한 일실시예 흐름도.3 is a flowchart illustrating an embodiment of a communication method between a multiple access client and a single access server according to the present invention.

*도면의 주요 부분에 대한 부호의 설명* Explanation of symbols for the main parts of the drawings

11 : 클라이언트 프로세스 12 : 매개 프로세스11: client process 12: intermediate process

13 : 서버 프로세스13: server process

상기 목적을 달성하기 위한 본 발명은, 통신시스템에 적용되는 클라이언트와 서버간의 통신 방법에 있어서, 프로세스가 상기 서버와 접속한 후에, 제1 및 제2 스레드(Thread)를 생성하는 제 1 단계; 상기 클라이언트의 다수 클라이언트 스레드의 다중 접속 요청에 따라, 상기 제1 스레드가 상기 다수 클라이언트 스레드에 대응되는 제3 스레드를 생성하고, 상기 제3 스레드에서 하나의 이벤트를 생성한 후에 전송메시지 내부에 이벤트값을 포함시켜 상기 서버로 전송하는 제 2 단계; 및 상기 서버로부터의 결과에 따라, 상기 제2 스레드가 응답메시지 내부의 이벤트값으로 이벤트를 발생시켜 상기 제3 스레드중 해당 스레드가 결과를 받아서 상기 클라이언트로 응답메시지를 전송하는 제 3 단계를 포함한다.According to an aspect of the present invention, there is provided a communication method between a client and a server applied to a communication system, comprising: a first step of generating a first thread and a second thread after a process connects to the server; According to the multiple connection request of the plurality of client threads of the client, the first thread generates a third thread corresponding to the plurality of client threads, and after generating one event in the third thread, the event value in the transmission message Including a second step of transmitting to the server; And a third step of the second thread generating an event with an event value inside the response message according to the result from the server, and receiving a result from the corresponding thread among the third threads to transmit a response message to the client. .

또한, 본 발명은, 프로세서를 구비한 통신시스템에, 프로세스가 상기 서버와 접속한 후에, 제1 및 제2 스레드(Thread)를 생성하는 기능; 상기 클라이언트의 다수 클라이언트 스레드의 다중 접속 요청에 따라, 상기 제1 스레드가 상기 다수 클라이언트 스레드에 대응되는 제3 스레드를 생성하고, 상기 제3 스레드에서 하나의 이벤트를 생성한 후에 전송메시지 내부에 이벤트값을 포함시켜 상기 서버로 전송하는 기능; 및 상기 서버로부터의 결과에 따라, 상기 제2 스레드가 응답메시지 내부의 이벤트값으로 이벤트를 발생시켜 상기 제3 스레드중 해당 스레드가 결과를 받아서 상기 클라이언트로 응답메시지를 전송하는 기능을 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공한다.The present invention also provides a communication system having a processor, the function of generating a first thread and a second thread after a process connects with the server; According to the multiple connection request of the plurality of client threads of the client, the first thread generates a third thread corresponding to the plurality of client threads, and after generating one event in the third thread, the event value in the transmission message Sending to the server including a; And according to a result from the server, the second thread generates an event with an event value inside the response message so that the corresponding thread among the third threads receives the result and transmits a response message to the client. Provide a computer readable recording medium having recorded thereon.

이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 일실시예를 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1 은 본 발명이 적용되는 하드웨어 시스템의 구성 예시도로서, 상이한 접속 환경을 갖는 클라이언트-서버구조 환경에서의 통신을 위한 관계도이다.1 is an exemplary configuration diagram of a hardware system to which the present invention is applied and is a relation diagram for communication in a client-server architecture environment having a different connection environment.

도 1에 도시된 바와 같이, 본 발명이 적용되는 하드웨어 시스템은, 다중접속이 요구되는 클라이언트와 단일접속이 요구되는 서버 구조를 가진 상이한 환경에서 통신하기 위하여 클라이언트 프로세스(11)와 서버 프로세스(13) 중간에 매개 역할을 하는 매개 프로세스(12)를 두어 처리한다.As shown in FIG. 1, a hardware system to which the present invention is applied includes a client process 11 and a server process 13 for communicating in a different environment having a server structure requiring a single connection with a client requiring multiple access. Intermediate process (12) acts as an intermediary in the middle of the process.

클라이언트 프로세스(11)는 각각의 클라이언트 스레드들(111)이 다중 접속을 가지는 구조를 가지고 있으며, 서버 프로세스(13)는 단일 접속만을 지원하는 구조를 가지고 있다.The client process 11 has a structure in which each of the client threads 111 has multiple connections, and the server process 13 has a structure supporting only a single connection.

매개 프로세스(12)는 서버 프로세스(13)로부터 응답을 받는 응답메시지 수신 스레드(121)와, 클라이언트 프로세스(11)의 각 클라이언트 스레드들(111)과 통신하는 클라이언트 대응 스레드들(123)로 구성되어 있다.Each process 12 is composed of a response message receiving thread 121 that receives a response from the server process 13, and client corresponding threads 123 that communicate with each of the client threads 111 of the client process 11; have.

매개 프로세스(12)는 서버 프로세스(13)로부터 전송 결과를 받는 응답메시지 수신 스레드(121)를 두며, 또한 클라이언트 프로세스(11)의 다중 접속을 위한 클라이언트 대응 스레드들(123)은 클라이언트 스레드들(111)로부터 정보를 받아 단일 접속을 통하여 정보를 서버 프로세스(13)로 송신만 전담한다.Each process 12 has a response message receiving thread 121 that receives the transmission result from the server process 13, and the client corresponding threads 123 for multiple connection of the client process 11 are client threads 111 Is dedicated to sending information to the server process 13 via a single connection.

클라이언트 대응 스레드들(123)은 클라이언트 프로세스(11)로부터 접속이 되면, 이벤트를 생성하여 서버 프로세스(13)로 보내는 메시지 내부에 이벤트값을 포함시키고, 서버 프로세스(13)는 수신 응답메시지에 동일 이벤트값을 포함시켜 매개 프로세스(12)보낸다. 이때, 서버 프로세스(13)로부터 결과를 수신하는 응답메시지 수신 스레드(121)가 수신된 응답메시지내의 이벤트값으로 이벤트를 발생시키면, 해당 클라이어트 대응 스레드(123)가 이벤트를 받아 클라이언트 프로세스(11)로 응답메시지를 전송한다.When the client correspondence threads 123 are connected from the client process 11, the client corresponding threads 123 generate an event and include the event value in the message sent to the server process 13, and the server process 13 receives the same event in the received response message. The intermediary process 12 is sent to include the value. At this time, when the response message receiving thread 121 receiving the result from the server process 13 generates an event with an event value in the received response message, the corresponding client correspondence thread 123 receives the event and sends the event to the client process 11. Send a response message.

도 2 는 본 발명에 따른 다중접속 클라이언트와 단일접속 서버간의 통신방법에 대한 일실시예 설명도로서, 다중접속이 요구되는 클라이언트 프로세스(11)가 단일접속만 허용하는 서버 프로세스(13)로 정보를 전송하고 전송 확인 메시지를 받는 절차를 나타낸다.FIG. 2 is a diagram illustrating an embodiment of a communication method between a multiple access client and a single access server according to the present invention, and the client process 11 requiring multiple accesses sends information to a server process 13 allowing only a single access. Shows the procedure for sending and receiving a delivery confirmation message.

매개 프로세스(12)는 서버 프로세스(13)로부터 전송 결과를 받는 응답메시지 수신 스레드(121)와 클라이언트 프로세스(11)의 다중 접속 요청을 기다리는 데몬 스레드(122)로 구성된다.Each process 12 is composed of a response message receiving thread 121 receiving the transmission result from the server process 13 and a daemon thread 122 waiting for the multiple connection request of the client process 11.

본 발명에 따른 다중접속 클라이언트와 단일접속 서버간의 통신방법에 살펴보면 다음과 같다.Looking at the communication method between a multiple access client and a single access server according to the present invention.

매개 프로세스(12)는 서버 프로세스(13)와 접속하고(201), 이때 데몬 스레드(122)와 응답메시지 수신 스레드(121)를 생성한다. 여기서, 생성된 매개 프로세스(12)의 응답메시지 수신 스레드(121)는 서버 프로세스(13)와 접속 후에 응답메시지를 받기 위해 대기 상태로 들어간다. 또한, 데몬 스레드(122)는 클라이언트 프로세스(11)로부터 접속 요청을 기다린다.The intermediate process 12 connects to the server process 13 (201), and generates a daemon thread 122 and a response message receiving thread 121. Here, the response message receiving thread 121 of the generated intermediate process 12 enters the standby state to receive the response message after connecting with the server process 13. The daemon thread 122 also waits for a connection request from the client process 11.

만약, 클라이언트 프로세스(11)가 접속을 요청하면(202), 이때 클라이언트 프로세스(11)내에는 클라이언트 스레드(111)가 생성되고, 접속 요청 수신대기 상태에서 데몬 스레드(122)는 클라이언트 대응 스레드(123)를 생성하고(203), 새로 생성된 클라이언트 대응 스레드(123)는 한 개의 이벤트를 생성하여 서버 프로세스(13)에 보내려는 메시지내에 생성된 이벤트 값을 포함시켜 서버 프로세스(13)로 전송한 후에(204), 해당 이벤트값으로 이벤트가 발생되기를 기다린다.If the client process 11 requests a connection (202), at this time, a client thread 111 is created in the client process 11, and the daemon thread 122 is waiting for the client request thread 123 (203), and the newly created client correspondence thread (123) generates one event and includes the generated event value in the message to be sent to the server process (13) and sends it to the server process (13). 204, wait for an event to occur with the event value.

한편, 서버 프로세스(13)가 매개 프로세스(12)로부터 메시지를 수신한 후에 메시지내에 포함되어 있는 이벤트값을 응답메시지내에 포함시켜 다시 매개 프로세스(12)로 전송하면(205), 매개 프로세스(12)내의 응답메시지 수신 스레드(121)는 수신한 응답메시지를 광역 메모리에 저장하고 응답 메시지내에 저장된 이벤트 값으로 이벤트를 발생시켜 클라이언트 대응 스레드들(123)중 해당 이벤트값으로 이벤트가 발생되기를 기다리는 해당 클라이언트 대응 스레드(123)로 이벤트를 전송한다(206). 이때, 해당 클라이언트 대응 스레드(123)는 광역 메모리로부터 응답메시지를 읽어 응답메시지를 클라이언트 프로세스(11)의 해당 클라이언트 스레드(111)로 전송한다(207).On the other hand, after the server process 13 receives the message from the intermediary process 12, if the event value included in the message is included in the response message and transmitted back to the intermediary process 12 (205), the intermediary process 12 The response message receiving thread 121 in the response stores the received response message in a wide area memory and generates an event with an event value stored in the response message, so that the corresponding client waiting for an event to be generated with the corresponding event value among the client response threads 123. Event 206 is sent to thread 123. At this time, the client corresponding thread 123 reads the response message from the wide area memory and transmits the response message to the corresponding client thread 111 of the client process 11 (207).

도 3 은 본 발명에 따른 다중접속 클라이언트와 단일접속 서버간의 통신방법에 대한 일실시예 흐름도로서, 다중접속이 요구되는 클라이언트 프로세스(11)와 단일접속을 지원하는 서버 프로세스(13)간의 서로 상이한 통신 접속 환경에서 정보전송 및 전송 확인 절차를 나타낸다.3 is a flow chart of an embodiment of a communication method between a multiple access client and a single access server according to the present invention, wherein different communication is performed between a client process 11 requiring multiple access and a server process 13 supporting a single access. The following shows information transmission and transmission confirmation procedures in a connected environment.

본 발명은 클라이언트 프로세스(11)와 서버 프로세스(13)간 통신시에, 이벤트와 스레드를 이용하여 다중접속이 요구되는 클라이언트 프로세스(11)와 단일접속이 요구되는 서버 프로세스(13)를 가진 상이한 통신시스템 환경에서 통신할 수 있도록 하기 위해, 클라이언트 프로세스(11)에서 다중접속을 계속 유지하며 단일 스레드 서버 프로세스(13)와 통신하고, 서버 프로세스(13)에서는 하나의 단일 접속만으로 다중 스레드 클라이언트 프로세스(11)와 통신할 수 있다.In the present invention, when communicating between the client process 11 and the server process 13, different communication with the client process 11 requiring multiple access and the server process 13 requiring a single access using events and threads In order to be able to communicate in the system environment, the client process 11 maintains multiple connections and communicates with a single threaded server process 13, where the server process 13 has a single threaded connection with only a single connection. ) Can be communicated with.

도 3에 도시된 바와 같이, 본 발명에 따른 다중접속 클라이언트와 단일접속 서버간의 통신방법은, 먼저 매개 프로세스(12)에서 서버 프로세스(13)와 접속하면(201), 매체 프로세스(12)에서 데몬 스레드(122)와 응답메시지 수신 스레드(121)를 생성한다(302). 이때, 생성된 매개 프로세스(12)의 응답메시지 수신 스레드(121)는 서버 프로세스(13)와 접속하여 응답메시지를 받기 위해 대기 상태로 천이한다(303). 또한, 데몬 스레드(122)는 클라이언트 프로세스(11)로부터 접속 요청을 기다린다(304).As shown in FIG. 3, in the communication method between a multi-access client and a single-access server according to the present invention, first, when the medium process 12 connects to the server process 13 (201), the daemon in the media process 12 A thread 122 and a response message receiving thread 121 are generated (302). At this time, the response message receiving thread 121 of the generated intermediate process 12 is connected to the server process 13 and transitions to the standby state to receive the response message (303). The daemon thread 122 also waits (304) for a connection request from the client process 11.

이후, 클라이언트 프로세스(11)로부터 접속 요청이 수신되면(305), 접속 요청 수신대기 상태에서(304) 데몬 스레드(122)가 클라이언트 대응 스레드(123)를 생성한다(306). 이때, 생성된 클라이언트 대응 스레드(123)는 클라이언트 프로세스(11)의 접속에 대한 한 개의 이벤트를 생성하여(307) 서버 프로세스(13)에 보내려는 메시지내에 생성된 이벤트값을 포함시켜 서버 프로세스(13)로 전송한 후에(308), 해당 이벤트값으로 이벤트가 발생되기를 기다린다(309).Thereafter, when a connection request is received from the client process 11 (305), in the wait state for the connection request (304), the daemon thread 122 generates a client correspondence thread 123 (306). At this time, the generated client correspondence thread 123 generates one event for the connection of the client process 11 (307) and includes the generated event value in the message to be sent to the server process 13, the server process (13) After transmitting to the network (308), it waits for the event to occur with the corresponding event value (309).

다음으로, 서버 프로세스(13)가 매개 프로세스(12)로부터 수신된 메시지내에 포함되어 있는 이벤트값을 응답메시지내에 포함시켜 다시 매개 프로세스(12)로 전송하는데, 이처럼 서버 프로세스(13)로부터 응답메시지가 수신되면(310), 매개 프로세스(12)내의 응답메시지 수신 스레드(121)는 수신된 응답메시지를 광역 메모리에 저장하고(311), 응답 메시지내에 저장된 이벤트값으로 이벤트를 발생시켜(312) 클라이언트 대응 스레드들(123)중 해당 이벤트값으로 이벤트가 발생되기를 기다리는 해당 클라이언트 대응 스레드(123)로 이벤트를 전송한다(313).Next, the server process 13 includes the event value included in the message received from the intermediary process 12 in the response message and sends it back to the intermediary process 12. Thus, the response message from the server process 13 When received (310), the response message receiving thread 121 in the intermediary process 12 stores the received response message in the global memory (311), and generates an event with the event value stored in the response message (312) to respond to the client. The event is transmitted to the corresponding client corresponding thread 123 waiting for an event to be generated with the corresponding event value among the threads 123 (313).

이어서, 해당 클라이언트 대응 스레드(123)에서 광역 메모리로부터 응답메시지를 읽어(314) 읽어온 응답메시지를 클라이언트 프로세스(11)의 해당 클라이언트 스레드(111)로 전송한다(315).Subsequently, the response message 314 reads the response message from the wide area memory in the client correspondence thread 123 and transmits the response message to the corresponding client thread 111 of the client process 11 (315).

이상에서와 같은, 본 발명은 다중접속 클라이언트와 단일접속 서버간의 이질적 통신환경에서의 통신방법을 제공하므로써, 하나의 정보시스템으로부터 하나의 접속만을 지원하는 시스템과 여러 접속을 통하여 서버 시스템과 통신해야 할 성격의 작업을 가지는 클라이언트 시스템 사이의 이질적인 통신 환경에 적합하다.As described above, the present invention provides a communication method in a heterogeneous communication environment between a multi-access client and a single-access server, so that a system that supports only one connection from one information system and a server system must be communicated through multiple connections. It is suitable for heterogeneous communication environments between client systems with a task of nature.

이상에서 설명한 본 발명은, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에 있어 본 발명의 기술적 사상을 벗어나지 않는 범위내에서 여러 가지 치환, 변형 및 변경이 가능하므로 전술한 실시예 및 첨부된 도면에 한정되는 것이 아니다.The present invention described above is capable of various substitutions, modifications, and changes without departing from the spirit of the present invention for those skilled in the art to which the present invention pertains, and the above-described embodiments and accompanying It is not limited to the drawing.

상기한 바와 같은 본 발명은, 클라이언트와 서버 프로세스간에 통신하는데 있어서, 이벤트와 스레드를 이용하여 다중접속이 요구되는 클라이언트와 단일접속이 요구되는 서버 구조를 가진 상이한 환경에서 통신이 가능하게 해주며, 스레드를 이용하므로써 프로세스를 여러 개 생성하지 않고 스레드로 처리하여 다중 중앙처리장치 환경에서 중앙처리장치를 충분히 활용할 수 있는 효과가 있다.As described above, the present invention enables communication between a client and a server process in a different environment having a server structure requiring a single connection with a client requiring multiple connections using events and threads. By using it, it is possible to take full advantage of the CPU in a multiple CPU environment by processing as a thread without creating multiple processes.

Claims (6)

통신시스템에 적용되는 클라이언트와 서버간의 통신 방법에 있어서,In a communication method between a client and a server applied to a communication system, 프로세스가 상기 서버와 접속한 후에, 제1 및 제2 스레드(Thread)를 생성하는 제 1 단계;A first step of creating a first and a second thread after a process connects with the server; 상기 클라이언트의 다수 클라이언트 스레드의 다중 접속 요청에 따라, 상기 제1 스레드가 상기 다수 클라이언트 스레드에 대응되는 제3 스레드를 생성하고, 상기 제3 스레드에서 하나의 이벤트를 생성한 후에 전송메시지 내부에 이벤트값을 포함시켜 상기 서버로 전송하는 제 2 단계; 및According to the multiple connection request of the plurality of client threads of the client, the first thread generates a third thread corresponding to the plurality of client threads, and after generating one event in the third thread, the event value in the transmission message Including a second step of transmitting to the server; And 상기 서버로부터의 결과에 따라, 상기 제2 스레드가 응답메시지 내부의 이벤트값으로 이벤트를 발생시켜 상기 제3 스레드중 해당 스레드가 결과를 받아서 상기 클라이언트로 응답메시지를 전송하는 제 3 단계According to a result from the server, a third step in which the second thread generates an event with an event value inside the response message and the corresponding thread among the third threads receives the result and transmits a response message to the client. 를 포함하여 이루어진 다중접속 클라이언트와 단일접속 서버간의 통신방법.Communication method between a multi-connection client and a single-connection server made, including. 제 1 항에 있어서,The method of claim 1, 상기 프로세스는,The process is 상기 클라이언트와 상기 서버 사이에, 상기 클라이언트와는 다중접속을 통하여 통신하는 다중 스레드를 갖고 상기 서버와는 단일접속을 통하여 통신하는 단일 스레드를 갖는 매개 프로세스인 것을 특징으로 하는 다중접속 클라이언트와 단일접속 서버간의 통신방법.A multi-connection client and a single-access server, wherein the multi-connection client and the server have multiple threads communicating with the client through multiple connections and a single thread communicating with the server through a single connection. Method of communication between. 제 1 항 또는 제 2 항에 있어서,The method according to claim 1 or 2, 상기 제 2 단계는,The second step, 상기 매개 프로세스의 상기 제2 스레드인 응답메시지 수신 스레드가 상기 서버와 접속하여 응답메시지를 받기 위해 대기 상태로 천이하는 제 4 단계;A fourth step of a response message receiving thread, which is the second thread of the intermediate process, transitions to a waiting state for connecting to the server and receiving a response message; 상기 제1 스레드인 데몬 스레드가 상기 클라이언트로부터 접속 요청을 기다리는 제 5 단계;A fifth step of waiting for a connection request from the client by a daemon thread which is the first thread; 상기 클라이언트로부터 접속 요청이 수신되면, 상기 데몬 스레드가 상기 제3 스레드인 클라이언트 대응 스레드를 생성하는 제 6 단계; 및A sixth step of generating a client corresponding thread, wherein the daemon thread is the third thread, when a connection request is received from the client; And 상기 클라이언트 대응 스레드에서 한 개의 이벤트를 생성하여 상기 서버로 전송하는 메시지내에 생성된 이벤트값을 포함시켜 상기 서버로 전송하는 제 7 단계A seventh step of generating one event in the client corresponding thread and including the generated event value in a message transmitted to the server and transmitting the generated event value to the server; 를 포함하여 이루어진 다중접속 클라이언트와 단일접속 서버간의 통신방법.Communication method between a multi-connection client and a single-connection server made, including. 제 3 항에 있어서,The method of claim 3, wherein 상기 제 3 단계는,The third step, 이벤트가 발생대기 상태에서, 상기 서버로부터 이벤트값이 포함된 응답메시지가 수신되면, 상기 매개 프로세스내의 상기 응답메시지 수신 스레드에서 수신된 응답메시지를 저장수단에 저장하는 제 8 단계;An eighth step of storing a response message received by the response message receiving thread in the intermediate process in a storage means when an event message including an event value is received from the server in an event waiting state; 응답메시지내에 저장된 이벤트값으로 이벤트를 발생시켜 상기 클라이언트 대응 스레드들중 해당 이벤트값으로 이벤트가 발생되기를 기다리는 해당 클라이언트 대응 스레드로 이벤트를 전송하는 제 9 단계; 및A ninth step of generating an event with an event value stored in a response message and transmitting an event to a corresponding client corresponding thread waiting for the event to be generated with the corresponding event value among the client corresponding threads; And 상기 해당 클라이언트 대응 스레드에서 상기 저장수단으로부터 응답메시지를 읽어 읽어온 응답메시지를 상기 클라이언트의 해당 클라이언트 스레드로 전송하는 제 10 단계A tenth step of transmitting a response message read from the storage means by the corresponding client corresponding thread to the corresponding client thread of the client; 를 포함하여 이루어진 다중접속 클라이언트와 단일접속 서버간의 통신방법.Communication method between a multi-connection client and a single-connection server made, including. 제 4 항에 있어서,The method of claim 4, wherein 상기 통신시스템은,The communication system, 다중접속이 요구되는 상기 클라이언트와 단일접속이 요구되는 상기 서버 구조를 가진 상이한 환경의 통신시스템인 것을 특징으로 하는 다중접속 클라이언트와 단일접속 서버간의 통신방법.And a communication system of a different environment having the server structure requiring a single connection and the client requiring multiple access. 프로세서를 구비한 통신시스템에,In a communication system having a processor, 프로세스가 상기 서버와 접속한 후에, 제1 및 제2 스레드(Thread)를 생성하는 기능;Creating a first and a second thread after a process connects with the server; 상기 클라이언트의 다수 클라이언트 스레드의 다중 접속 요청에 따라, 상기 제1 스레드가 상기 다수 클라이언트 스레드에 대응되는 제3 스레드를 생성하고, 상기 제3 스레드에서 하나의 이벤트를 생성한 후에 전송메시지 내부에 이벤트값을 포함시켜 상기 서버로 전송하는 기능; 및According to the multiple connection request of the plurality of client threads of the client, the first thread generates a third thread corresponding to the plurality of client threads, and after generating one event in the third thread, the event value in the transmission message Sending to the server including a; And 상기 서버로부터의 결과에 따라, 상기 제2 스레드가 응답메시지 내부의 이벤트값으로 이벤트를 발생시켜 상기 제3 스레드중 해당 스레드가 결과를 받아서 상기 클라이언트로 응답메시지를 전송하는 기능In response to the result from the server, the second thread generates an event with an event value inside the response message so that the corresponding thread among the third threads receives the result and sends a response message to the client. 을 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for realizing this.
KR1019980061634A 1998-12-30 1998-12-30 Communication method between multiple access client and single access server KR100278303B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980061634A KR100278303B1 (en) 1998-12-30 1998-12-30 Communication method between multiple access client and single access server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980061634A KR100278303B1 (en) 1998-12-30 1998-12-30 Communication method between multiple access client and single access server

Publications (2)

Publication Number Publication Date
KR20000045106A KR20000045106A (en) 2000-07-15
KR100278303B1 true KR100278303B1 (en) 2001-01-15

Family

ID=19568361

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980061634A KR100278303B1 (en) 1998-12-30 1998-12-30 Communication method between multiple access client and single access server

Country Status (1)

Country Link
KR (1) KR100278303B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100450419B1 (en) * 2002-02-18 2004-09-30 한국전자통신연구원 A Method of the Multi-thread Client Liberary's Operating in Database System
KR100732088B1 (en) * 2005-09-02 2007-06-27 엘지노텔 주식회사 A Method for Scheduling Multi-thread Calls
KR100837434B1 (en) * 2006-09-29 2008-06-12 삼성전자주식회사 Mediation apparatus processing interface between client and server and interface method thereof

Also Published As

Publication number Publication date
KR20000045106A (en) 2000-07-15

Similar Documents

Publication Publication Date Title
US4930069A (en) Mechanism and method for transferring data between bus units having varying master and slave DMA capabilities
CN111884917A (en) Gateway system based on micro service and gateway dynamic routing method
EP0317481B1 (en) Remote storage management mechanism and method
US5204954A (en) Remote storage management mechanism and method
KR900016876A (en) Common Bus Control Method and System
KR100278303B1 (en) Communication method between multiple access client and single access server
US5495582A (en) System and method for interprocessor routing through an established communication session in a loosely coupled computer complex
JPH01137356A (en) Inter-process communication
IE57448B1 (en) System control network for multiple processor modules
US6366590B2 (en) Unified interface between an IEEE 1394-1995 serial bus transaction layer and corresponding applications
CN112052104A (en) Message queue management method based on multi-computer-room realization and electronic equipment
CN117312229B (en) Data transmission device, data processing equipment, system, method and medium
JP3307331B2 (en) Network file system data transfer method
JPH06224975A (en) Method for resetting modules connected with each other, and system using this method
JP2812265B2 (en) Network management method for information processing system
JPH01229542A (en) Data transmission equipment using lan
CN114595064A (en) Management device of multi-node server and server system
JP2000339179A (en) Inter-process communication system in computer system
KR20010028113A (en) method for data backup of DBMS in switching system
CN116471162A (en) Communication method and device
JP3206499B2 (en) Information processing device
JP2002175284A (en) Communication system and method
JP2002171273A (en) Lan control system
JPH06100996B2 (en) Logical path management method
JPH04291896A (en) Industrial plant data distributor

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20121008

Year of fee payment: 13

FPAY Annual fee payment

Payment date: 20131004

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee