KR0150285B1 - Synchronous and asynchronous communication apparatus for communication between network application programs and method thereof - Google Patents

Synchronous and asynchronous communication apparatus for communication between network application programs and method thereof

Info

Publication number
KR0150285B1
KR0150285B1 KR1019950047846A KR19950047846A KR0150285B1 KR 0150285 B1 KR0150285 B1 KR 0150285B1 KR 1019950047846 A KR1019950047846 A KR 1019950047846A KR 19950047846 A KR19950047846 A KR 19950047846A KR 0150285 B1 KR0150285 B1 KR 0150285B1
Authority
KR
South Korea
Prior art keywords
communication
data
transmitter
transmission
receiver
Prior art date
Application number
KR1019950047846A
Other languages
Korean (ko)
Other versions
KR970056291A (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 KR1019950047846A priority Critical patent/KR0150285B1/en
Publication of KR970056291A publication Critical patent/KR970056291A/en
Application granted granted Critical
Publication of KR0150285B1 publication Critical patent/KR0150285B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

본 발명은 네트워크 응용 프로그램의 동기 및 비동기 통신장치 및 그 방법에 관한 것으로, 다중 작업 컴퓨터내의 통신 응용 프로그램들간의 통신 및 상기 다중 작업 컴퓨들이 연결된 네트워크상의 통신 응용 프로그램들 간의 통신을 위한 통신장치에 있어서, 상기 통신 응용 프로그램을 수행하는 통신 응용 프로그램 수행기와: 상기 통신 응용 프로그램 수행기에서 부여한 데이타의 전송 요구에 따라 데이타를 송신하는 송신기와, 상기 송신기의 송신 사실에 대한 정보를 기록하는 송신 기록부와, 상기 송신기에 의해 동작되어 일정시간 간격으로 상기 송신기를 구동시키는 상기 송신기의 송신 상태의 주기적인 검사를 위한 인터럽트 시계로 구성되는 송신부와: 상기 송신부로 부터 전송되는 데이타를 수신하는 수신기와, 상기 수신기의 수신동작을 제어하는 입출력 인터럽트 처리기와, 상기 수신기에 수신되는 데이타가 이전에 수신된 데이타와 동일한지를 확인하기 위한 수신 기록부와, 상기 수신되는 데이타가 상기 수신 기록부에 의해 새로운 데이타인 경우 해당되는 통신처리 방법을 수행하기 위한 통신별 처리방법 저장기로 구성되는 수신부로 이루어져, 동기적 통신뿐 아니라 비동기적 통신을 지원하여 보다 폭 넓은 종류의 통신용 프로그램 수행기를 만들어 통신 프로그램이 보다 통신을 자유롭게 할 수 있으며, 통신 프로그램의 설계자가 통신 프로그램의 설계를 쉽게 할 수 있는 장점을 갖는다.The present invention relates to a synchronous and asynchronous communication apparatus for a network application program and a method thereof. The present invention relates to a communication apparatus for communication between communication application programs in a multi-task computer and communication application programs on a network to which the multi-task computer is connected. A communication application program performer for executing the communication application program, the transmitter comprising: a transmitter for transmitting data according to a data transmission request given by the communication application program performer, a transmission recorder for recording information about the fact of transmission of the transmitter, A transmitter configured by an interrupt clock for periodically checking the transmission status of the transmitter operated by the transmitter to drive the transmitter at regular time intervals, the receiver comprising: a receiver for receiving data transmitted from the transmitter, and a reception of the receiver Control the behavior Performs an input / output interrupt processor, a reception recorder for confirming that the data received by the receiver is the same as previously received data, and a corresponding communication processing method when the received data is new data by the reception recorder. It consists of a receiver which consists of processing method storage method for each communication, and supports asynchronous communication as well as synchronous communication to make a wider range of communication program performers, so that the communication program can freely communicate more. It has the advantage of easy design of communication program.

Description

네트워크 응용 프로그램의 동기 및 비동기 통신장치 및 그 방법Synchronous and asynchronous communication device and method of network application

제1도는 다중 작업 컴퓨터의 개념적 구성도.1 is a conceptual diagram of a multi-tasking computer.

제2도는 상기 제1도의 다중 작업 컴퓨터의 망 연결도.2 is a network connection diagram of the multi-tasking computer of FIG.

제3도는 종래의 통신용 프로그램 수행기의 간략 구성도.3 is a simplified configuration diagram of a conventional program performer for communication.

제4도는 본 발명에 따른 동기 및 비동기 통신장치를 포함하는 통신용 프로그램 수행기의 간략 구성도.4 is a simplified block diagram of a communication program performer including a synchronous and asynchronous communication device according to the present invention.

제5도는 본 발명에 따른 동기 및 비동기 통신장치의 상세한 블럭 구성도.5 is a detailed block diagram of a synchronous and asynchronous communication apparatus according to the present invention.

제6도는 상기 제5도의 입출력 인터럽트 처리기의 동작수행 순서도.6 is a flowchart illustrating the operation of the input / output interrupt processor of FIG.

제7도는 상기 제5도의 수신기의 동작수행 순서도.7 is a flowchart illustrating the operation of the receiver of FIG.

제8도는 상기 제5도의 인터럽트 시계의 동작수행 순서도.8 is a flowchart of the operation of the interrupt clock of FIG.

제9도는 상기 제5도의 송신기의 동작수행 순서도.9 is a flowchart illustrating the operation of the transmitter of FIG.

제10도는 상기 제5도의 수신부의 송신 결과 처리순서도.FIG. 10 is a flowchart of transmission result processing of the receiver of FIG.

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

51 : 수신부 52 : 통신응용 프로그램51: receiver 52: communication application

53 : 송신부 54 : 입출력 인터럽트 처리기53: transmitter 54: input / output interrupt handler

55 : 수신기 56 : 수신 기록부55 receiver 56 reception recorder

57 : 통신별 처리방법 저장기 58 : 인터럽트 시계57: Communication method saver 58: Interrupt clock

59 : 송신기 5A : 송신 데이타 저장기59: transmitter 5A: transmit data storage

5B : 송신 기록부5B: transmission log

본 발명은 네트워크 응용 프로그램의 동기 및 비동기 통신장치 및 그 방법에 관한 것으로, 특히 다중 작업 컴퓨터내의 통신 응용 프로그램들 간의 통신과 상기 다중 작업 컴퓨터들이 상호연결된 네트워크 상에서의 네트워크 통신 응용 프로그램들 간의 동기 및 비동기 통신이 가능한 동기 및 비동기 통신장치 및 그 방법에 관한 것이다.The present invention relates to a synchronous and asynchronous communication apparatus and method of a network application, and more particularly, to a communication between communication applications in a multi-working computer and to a synchronous and asynchronous communication between network communication applications on a network to which the multi-working computers are interconnected. A synchronous and asynchronous communication apparatus capable of communication and a method thereof.

일반적으로 다중 작업 컴퓨터 내에서는 제1도에 도시되어 있는 바와 같이 여러 개의 통신용 프로그램 수행기(10)가 동시에 수행될 수 있으며, 상기 통신용 프로그램들은 필요에 따라 서로간의 통신수행을 통하여 필요한 작업을 진행한다.In general, as shown in FIG. 1, multiple communication program performers 10 may be simultaneously executed in a multi-task computer, and the communication programs perform necessary tasks through communication with each other as necessary.

또한, 상기 다중 작업 컴퓨터들은 제2도에 도시된 바와 같이 외부 통신 장치(20)를 통하여 여러 개의 다른 다중 작업 컴퓨터와 연결되어 네트워크를 구성하여 사용될 수 있으며, 이때 한 컴퓨터의 통신용 프로그램 수행기는 다른 컴퓨터의 통신용 프로그램 수행기와 통신을 하게 된다.In addition, the multi-working computers may be connected to several other multi-working computers through an external communication device 20 to form a network, as shown in FIG. Communicate with program manager for communication.

상기 제1도 및 제2도와 같은 환경에서 통신용 프로그램 수행기는 여러가지 목적으로 제작되어 사용된다.In the environment shown in FIGS. 1 and 2, a communication program performer is manufactured and used for various purposes.

최근과 같이 컴퓨터 장비의 가격이 성능에 비하여 저렴하고 네트워크의 속도가 멀티미디어를 수행할 수 있을 정도로 빨라진 환경에서는 더욱 통신용 프로그램 수행기의 제작이 많아진다.In recent years, the cost of computer equipment is lower than that of performance, and the speed of the network is fast enough to perform multimedia.

비근한 예로는 네트워크 상에서 정보를 관리하고 이 정보를 열람할 수 있게 하는 프로그램들과 이를 열람하고자 하는 프로그램들, 여러 명의 사용자가 컴퓨터를 통하여 공동 작업을 할 수 있도록 하는 프로그램들이 모두 통신용 프로그램 수행기에 해당한다.A non-trivial example is a program executor for communication that includes programs that manage and view information on a network, programs that want to view it, and programs that allow multiple users to collaborate through a computer. .

상기와 같은 다중 작업 컴퓨터와 그 네트워크 상에서 통신용 프로그램 수행기가 통신을 수행하기 위해서는 통신을 위한 통신기가 필요하다.In order to perform a communication between the multi-working computer and the program performer for communication on the network, a communication device for communication is required.

따라서, 종래에는 제3도와 같이 내부의 송수신부(32), 즉 통신기가 송신부와 수신부를 합친 하나로 구성됨에 따라 통신용 프로그램 수행기(이하, 통신 프로그램이라 약칭하기도 함)(31)들이 다른 통신 프로그램들과의 통신을 수행하는 경우 어느 한 순간이든지 송신의 상태로 있거나 수신의 상태를 유지하면서 통신을 수행하게 된다.Therefore, in the related art, as shown in FIG. 3, the internal communication transceiver 32, that is, the communicator is composed of a transmitter and a receiver combined together, causes the communication program performers 31 (hereinafter, also referred to as communication programs) 31 to be communicated with other communication programs. If communication is performed at any moment, the communication is performed while the state of transmission is maintained or the state of reception is maintained.

상기 종래의 통신장치가 송신 아니면 수신상태에서만이 통신이 가능함에 따라 두 통신 프로그램들 간에 미리 송신과 수신의 순서를 정하여 통신을 수행해야 한다.Since the communication is possible only in the transmission or reception state of the conventional communication apparatus, communication must be performed by determining the order of transmission and reception between the two communication programs in advance.

즉, 상기와 같은 통신방법을 동기적 통신방법이라 하며, 그 대표적인 예로는 클라이언트 서버 방식이 있다.That is, such a communication method is called a synchronous communication method, and a representative example thereof is a client server method.

상기 클라이언트 서버 방식은, 하나의 통신 프로그램은 서버의 역할을 하고, 다른 통신 프로그램은 클라이언트의 역할을 수행한다.In the client server method, one communication program plays a role of a server, and the other communication program plays a role of a client.

상기와 같은 역할은 프로그램의 제작에서부터 지정되어 있어 수행 중에 그 역할이 바뀌거나 하지는 않는다.These roles are assigned from the production of the program and do not change their role during execution.

상기 서버 역할의 통신 프로그램은 그 수행에 있어 처음에 필요한 작업들을 수행한 후 통신기를 수신상태의 위치에 두고 다른 클라이언트 역할 수행의 통신 프로그램에서 송신이 있을 때까지 상기 수행을 정지하고 대기한다.The communication program in the server role performs the tasks necessary for the first time and then stops the execution and waits until there is a transmission from the communication program in the other client role performance after placing the communicator in the reception position.

상기 클라이언트 역할의 통신 프로그램은 수행시 자신의 필요한 작업을 수행 중 필요에 따라 서버 통신 프로그램에 필요한 서비스를 요구할 수 있다.The communication program in the client role may request a service necessary for the server communication program as necessary during the execution of its required task.

이러한 요구사항을 서버 측에 송신하면 수신상태로 대기중인 서버는 이를 수신하고 필요한 작업을 하여 그 결과를 클라이언트측에 송신한다.When this requirement is sent to the server side, the server waiting to receive it receives it, does the necessary work, and sends the result to the client side.

이때, 서버 측의 통신기는 송신상태로 전환한 다음 상기 결과를 송신하게 되는 것이다.At this time, the server-side communicator switches to the transmission state and then transmits the result.

그러나, 상기와 같은 클라이언트 서버 방식의 동기적 통신방법에 있어서, 종래의 통신기를 사용하는 통신 프로그램은 송수신 상태의 변경 데이타의 송수신등을 직접 수행하므로 이의 수행시 다른 처리를 할 수 없으며, 송신 상태에서는 수신할 수 없고 수신 상태에서는 송신할 수 없는 결점이 있다.However, in the synchronous communication method of the client-server method as described above, since a communication program using a conventional communication device directly performs transmission and reception of change data in a transmission / reception state, no other processing can be performed during its execution. There is a flaw that cannot be received and cannot be transmitted in the receive state.

또한, 서로 통신하는 통신 프로그램들이 클라이언트 서버와 같이 서로 의존적인 역할을 미리 정하여 설계해야 함에 따라 두 통신 프로그램의 상호 관계 및 상호 작용을 정확히 분석하여 설계해야 하는 설계상의 어려움이 크다는 문제점이 있었다.In addition, since communication programs communicating with each other must be designed in advance with mutually dependent roles such as client servers, there is a problem in that a design difficulty of accurately analyzing and designing the mutual relations and interactions of two communication programs is large.

그리고, 상기 클라이언트 서버와 같은 서로 다른 역할의 통신 프로그램 모델은 그룹웨어 프로그램과 같이 자신이 필요에 따라 다른 프로그램에 서비스를 요구하기도 하고 제공하기도 하는 대등관계의 모델 등을 수용할 수 없는 문제점 또한 대두되고 있다.In addition, communication program models of different roles, such as the client server, have a problem that they cannot accommodate a model of the equivalence relationship, such as a groupware program, which requires or provides a service to other programs as needed. .

즉, 상기와 같은 종래의 통신용 프로그램 수행기들의 구현에는 동기적 통신기가 구현된 모듈로써 일반적으로 많이 사용되어 왔으나, 그 동기적인 제한성 때문에 그룹웨어 응용 프로그램들의 제작에는 큰 문제가 있는 것이다.That is, the conventional implementation of the communication program performers as described above has been generally used as a module in which a synchronous communicator is implemented, but due to its synchronous limitations, there is a big problem in the production of groupware applications.

상기와 같은 동기적 통신장치의 문제점을 해결하기 위한 본 발명의 목적은, 통신 프로그램간의 통신을 위한 통신장치가 송신부와 수신부를 독립적으로 각각 구비함으로써 각 통신 프로그램들은 서로 송신상태와 수신상태를 사전에 정할 필요 없이 아무때나 비동기적으로 한 측에서는 송신을, 다른 측에서는 수신할 수 있도록 하는 네트워크 응용 프로그램의 동기 및 비동기 통신장치를 제공하는 데에 있다.An object of the present invention for solving the problems of the synchronous communication apparatus as described above, the communication apparatus for communication between the communication program is provided with a transmitting unit and a receiving unit, respectively, so that each communication program in advance the transmission state and the reception state to each other It is to provide a synchronous and asynchronous communication device for a network application that can transmit on one side and receive on the other side at any time, without needing to decide.

상기와 같은 목적을 달성하기 위한 본 발명의 특징은, 다중작업 컴퓨터내의 통신 응용 프로그램들 간의 통신 및 상기 다중작업 컴퓨터들이 연결된 네트워크상의 통신 응용 프로그램들 간의 통신을 위한 통신장치에 있어서, 상기 통신 응용 프로그램을 수행하는 통신 응용 프로그램 수행기와: 상기 통신 응용 프로그램 수행기에서 부여한 데이타의 전송 요구에 따라 데이타를 송신하는 송신기와, 상기 송신기의 송신 사실에 대한 정보를 기록하는 송신 기록부와, 상기 송신기에 의해 동작되어 일정시간 간격으로 상기 송신기를 구동시키는 상기 송신기의 송신 상태의 주기적인 검사를 위한 인터럽트 시계로 구성되는 송신부와: 상기 송신부로부터 전송되는 데이타를 수신하는 수신기와, 상기 수신기의 수신동작을 제어하는 입출력 인터럽트 처리기와, 상기 수신기에 수신되는 데이타가 이전에 수신된 데이타와 동일한지를 확인하기 위한 수신 기록부와, 상기 수신되는 데이타가 상기 수신 기록부에 의해 새로운 데이타인 경우 해당되는 통신처리 방법을 수행하기 위한 통신별 처리방법 저장기로 구성되는 수신부로 이루어지는 데에 있다.A feature of the present invention for achieving the above object is a communication device for communication between communication application programs in a multitasking computer and communication application programs on a network to which the multitasking computers are connected, the communication application program. And a communication application program performer for performing data transmission, comprising: a transmitter for transmitting data according to a data transmission request given by said communication application program performer, a transmission recorder for recording information about the transmission fact of the transmitter, and being operated by the transmitter A transmitter comprising an interrupt clock for periodically checking the transmission status of the transmitter for driving the transmitter at regular time intervals: a receiver for receiving data transmitted from the transmitter, and an input / output interrupt for controlling the reception operation of the receiver Processor and icon A reception recorder for confirming whether the data received by the receiver is the same as previously received data, and a communication-specific processing method storage for performing a corresponding communication method when the received data is new data by the reception recorder. It consists of the receiving part comprised.

본 발명의 부가적인 특징은, 상기 통신 응용 프로그램이 데이타를 전송하기 위해 송신부의 송신기를 호출하는 경우, 상기 송신기는 상기 데이타를 송신 데이타 저장기에 저장하고 전송하는 제1단계와: 상기 제1단계의 송신기의 전송후 전송 사실에 대한 정보를 송신 기록부에 기록하고 송신 상태의 주기적인 검사를 위하여 인터럽트 시계를 동작시키는 제2단계와: 상기 제2단계의 인터럽트 시계의 동작으로 일정 시간 간격으로 송신기가 구동하면서 계속해서 데이타를 전송하는 제3단계와: 제3단계로부터 데이타가 수신되는 경우, 수신부의 입출력 인터럽트 처리기의 동작에 의해 수신기를 동작시키는 제4단계와: 제4단계의 수행에 따라 상기 수신기가 수신 기록부를 조사하여 이전에 수신된 데이타와 동일한 데이타인지를 검사하는 제5단계와: 제5단계로부터 상기 데이타가 이전 데이타와 동일하지 않은 데이타인 경우라면 수신기가 데이타를 수신하고, 통신별 처리방법 저장기에 해당되는 통신처리를 수행하는 제6단계를 포함하여 수행되는 데에 있다.An additional feature of the present invention is that, when the communication application program calls a transmitter of a transmitter to transmit data, the transmitter stores and transmits the data in a transmission data store, and the first step includes: A second step of recording information on the fact of transmission after transmission of the transmitter in the transmission recorder and operating an interrupt clock for periodic inspection of the transmission status: the transmitter is driven at a predetermined time interval by the operation of the interrupt clock of the second stage A third step of continuously transmitting data; and a fourth step of operating the receiver by an operation of an input / output interrupt processor of the receiver when the data is received from the third step; Step 5 and Examining whether the same data as the previously received data by checking the reception log; If emitter of said data is not the same as the previous data if the data is in to the receiver is received and carried out a sixth step of performing a communication process corresponding groups disposal method stored communication data.

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

제4도는 본 발명의 동기 및 비동기 통신장치의 간략 블럭 구성도로, 통신장치는 크게 통신 응용 프로그램(41)과 수신부(42)및 송신부(43)로 구성된다.4 is a simplified block diagram of a synchronous and asynchronous communication apparatus of the present invention. The communication apparatus is mainly composed of a communication application program 41, a receiver 42, and a transmitter 43.

제5도는 상기 제4도의 본 발명에 따른 동기 및 비동기 통신장치의 상세한 블럭 구성도로서, 통신장치는 크게 통신 응용 프로그램(52)과 수신부(51) 및 송신부(53)로 구성되며, 상기 수신부(51)는 입출력 인터럽트 처리기(54), 수신기(55), 수신 기록부(56) 및 통신별 처리방법 저장기(57)로 구성된다.5 is a detailed block diagram of a synchronous and asynchronous communication apparatus according to the present invention of FIG. 4, wherein the communication apparatus is largely composed of a communication application 52, a receiving unit 51 and a transmitting unit 53, and the receiving unit ( 51 is composed of an input / output interrupt processor 54, a receiver 55, a reception recorder 56, and a communication method storage 57.

또한 상기 송신부(53)는 인터럽트 시계(58), 송신기(59), 송신 데이타 저장기(5A) 및 송신 기록부(5B)로 구성된다.The transmitter 53 is composed of an interrupt clock 58, a transmitter 59, a transmission data store 5A, and a transmission recorder 5B.

상기 송신부(53)와 수신부(51)는 인터럽트에 의하여 자동으로 독립적으로 동작하며, 상기 통신 응용 프로그램(52)은 송신할 데이타가 있으면 이를 송신부(53)에 전달하여 처리하고, 상기 송신부(53)와 수신부(51)는 무손실 데이타 전송을 위하여 정보를 교환한다.The transmitter 53 and the receiver 51 operate automatically independently by an interrupt, and the communication application program 52 transfers the data to the transmitter 53 for processing if there is data to be transmitted, and the transmitter 53 And receiver 51 exchange information for lossless data transmission.

상기 송신부(53) 내부에서는 인터럽트 시계(58)와 송신기(59)가 동작 모듈이며, 상기 송신 데이타 저장기(5A)와 송신 기록부(5B)는 상기 송신기(59)가 데이타의 저장 및 수행 관련 정보의 저장을 위하여 사용하는 모듈이다.In the transmitter 53, an interrupt clock 58 and a transmitter 59 are operation modules, and the transmitter data store 5A and the transmitter recorder 5B are information related to storage and execution of data by the transmitter 59. This module is used for storing.

먼저 송신의 경우를 예를 들어 설명하면, 상기 통신 응용 프로그램(52)이 전송할 데이타가 있을 경우, 송신기(59)를 호출하여 상기 데이타를 전달하면 상기 송신기(59)는 데이타를 송신 데이타 저장기(5A)에 저장하고 나서 전송을 한다.First, a case of transmission is described by way of example. When there is data to be transmitted by the communication application 52, the transmitter 59 calls the transmitter 59 and transmits the data. Store in 5A) and then transmit.

상기 송신기(59)의 전송 후 전송 사실에 대한 정보를 송신 기록부(5B)에 기록하고 송신 상태의 주기적인 검사를 위하여 인터럽트 시계(58)를 작동시킨다.After transmission of the transmitter 59, information about the fact of transmission is recorded in the transmission recorder 5B, and the interrupt clock 58 is operated to periodically check the transmission status.

상기 인터럽트 시계(58)는 송신기(59)에 의해 동작이 시작되거나 끝나는데, 인터럽트 시계(58)가 동작하면 인터럽트 시계(58)는 송신기(59)가 지정한 일정 시간 간격으로 송신기(59)를 구동한다.The interrupt clock 58 starts or ends by the transmitter 59. When the interrupt clock 58 operates, the interrupt clock 58 drives the transmitter 59 at a predetermined time interval designated by the transmitter 59. do.

이에 따라, 상기 송신기(59)의 구동은 통신 응용 프로그램(52)과 인터럽트 시계(58), 이 두 가지에 의해 이루어진다.Accordingly, the transmitter 59 is driven by the communication application 52 and the interrupt clock 58.

제9도는 상기와 같이 설명한 바를 상세히 단계별로 나타낸 송신기의 동작순서도로서, 먼저 송신기가 수행되면 송신기는 자신을 구동시킨 것이 통신 응용 프로그램이었는지를 검사한다(s91).FIG. 9 is a flowchart illustrating the operation of the transmitter, which is described in detail as described above, step by step. When the transmitter is performed, the transmitter checks whether it is a communication application program (s91).

만약, 통신 응용 프로그램이 구동시켰다면 통신 응용 프로그램이 구동 시작시 같이 입력한 송신용 데이타를 받아 이를 송신 데이타 저장기에 저장한다(s98).If the communication application program is started, the communication application program receives the transmission data input together at the start of operation and stores it in the transmission data store (s98).

이어서, 송신을 한 이후 상대편에서 송신의 결과를 자신의 수신부로 보냈을 때 이를 처리할 송신 결과 처리 방법을 수신부에 등록한다(s99).Subsequently, when the other party sends the result of the transmission to its reception unit after the transmission, the transmission result processing method to process the registration is registered in the reception unit (s99).

상기와 같은 준비가 끝난 후, 송신기는 송신 데이타를 이와 함께 주어진 송신처로 송신을 수행하며(s9A), 송신을 마친 송신기는 송신 사실을 송신 기록부에 기입한다(s9B).After the above preparation is completed, the transmitter transmits the transmission data together with the given transmission destination (s9A), and the transmitter which has completed the transmission writes the fact of transmission to the transmission recorder (s9B).

다음으로, 송신 결과의 주기적인 검사를 위하여 인터럽트 시계를 동작시키는데(s9C), 이때 만약 이전에 이미 이와 같이 인터럽트 시계가 구동되어 있으면 단계 s91에서 단계 s92로 진행된다.Next, the interrupt clock is operated to periodically check the transmission result (s9C). If the interrupt clock has already been driven in this way, the process proceeds from step s91 to step s92.

상기 단계(s92)는 인터럽트 시계가 송신기를 구동시킨 경우로서 먼저 송신 기록부에 송신 완료 사실을 검사한다(s93).In the step s92, when the interrupt clock has driven the transmitter, first, the fact that the transmission is completed is checked in the transmission recorder (s93).

송신 기록부의 송신 완료사실은 단계 s99의 문장에 의해 등록된 처리 방법 즉, 제10도에 도시된 바와 같이 송신 기록부에 송신 완료를 기입한다(sA1).The transmission completion fact of the transmission recorder writes the transmission completion to the transmission recorder as shown in FIG. 10, i.e., the processing method registered by the sentence in step s99 (sA1).

상기 단계(s93)의 수행에 따라 검사 결과가 송신 완료 했을 경우(s94)는 인터럽트 시계를 정지시키고(s96), 송신 기록부에서 송신 사실을 삭제한다.When the check result is transmitted (s94) in accordance with the above step (s93), the interrupt clock is stopped (s96), and the transmission fact is deleted from the transmission recorder.

상기 단계(s94)에서 송신이 완료되지 않은 경우는 송신된 데이타의 손실이 있는 것으로 간주하고 송신 데이타 저장기에서 다시 데이타를 인출하여 재 송신한다(s95).If the transmission is not completed in the step s94, it is assumed that there is a loss of the transmitted data, and the data is again retrieved from the transmission data storage and retransmitted (s95).

상기 송신기의 반복 수행을 위한 인터럽트 시계의 수행 순서도는 제8도에 도시된 바와 같이, 제8도의 인터럽트 시계는 송신기에 의해 구동이 시작된다.As shown in FIG. 8, an interrupt clock for repeatedly performing the transmitter is driven, and the interrupt clock of FIG. 8 is started by the transmitter.

우선, 상기 인터럽트 시계의 구동시 시간 간격과 인터럽트 회수가 지정되고(s81), 이에 따라 인터럽트 시계가 구동되면 먼저 주어진 시간 간격과 지정 회수를 검사한다(s82).First, when the interrupt clock is driven, a time interval and the number of interrupts are designated (s81). Accordingly, when the interrupt clock is driven, the given time interval and the specified number of times are first checked (s82).

시간 간격이 주어져 있고 현재의 반복 회수가 지정회수 시간만큼 정지하여(s83), 지정된 시간이 지나면 다시 동작하여 송신기를 구동시켜(s84), 다음 반복 회수를 증가시킨다(s85).A time interval is given and the current number of repetitions is stopped for a predetermined number of times (s83), and after the specified time has elapsed, the transmitter is operated again to drive the transmitter (s84) and the number of next repetitions is increased (s85).

한편 수신의 예는 다음과 같다.An example of reception is as follows.

즉, 제5도를 참고하여 설명하면, 수신부(51) 내부에서는 입출력 인처럽트 처리기(54)와 수신기(55)가 동작 모듈이며, 통신별 처리 방법 저장기(57)와 수신 기록부(56)는 수신후 처리 방법과 무손실 통신을 위한 수신 정보의 관리를 위하여 상기 수신기(55)를 사용한다.That is, referring to FIG. 5, the input / output interrupt processor 54 and the receiver 55 are operation modules in the receiver 51, and the communication method processing method storage 57 and the reception recording unit 56 are described in FIG. The receiver 55 is used for a post-receipt processing method and management of received information for lossless communication.

상기 수신부(51)는 통신 응용 프로그램(52)과 비동기적으로, 독자적으로 수행된다.The receiving unit 51 is performed independently of the communication application program 52, independently.

다음으로 수신부의 수행과정을 설명하면, 외부로부터 수신부(51)로 전송된 데이타가 있으면 먼저 입출력 인터럽트가 발생하여 입출력 인터럽트 처리기(54)가 수행되고, 상기 입출력 인터럽트 처리기(54)는 수신기(55)를 동작시킨다.Next, a description will be made of a receiving unit. If there is data transmitted from the outside to the receiving unit 51, an input / output interrupt is first generated, and an input / output interrupt processor 54 is performed, and the input / output interrupt processor 54 is a receiver 55. To operate.

이어서, 상기 수신기(55)는 수신 기록부(56)를 조사하여 이전에 수신된 데이타와 동일하면 반복 수신 응답을 전송하고 수신 데이타를 제거하나, 그렇지 않으면 통신별 처리 방법 저장기(57)로부터 해당하는 처리방법을 인출하여 이를 호출한다.Subsequently, the receiver 55 examines the reception recorder 56 and transmits a repeated reception response if the same as previously received data and removes the received data. Otherwise, the receiver 55 corresponds to the corresponding processing method storage 57. Fetch a method to call it.

제6도는 상기 수신부의 입출력 인터럽트 처리기의 수행 순서도로서, 외부로부터 데이타가 도착하면 입출력 인터럽트가 일어나고(s61), 상기 입출력 인터럽트 처리기가 자동으로 수행되어(s62) 상기 입출력 인터럽트 처리기는 수신기를 구동시킨다(s63).6 is a flow chart of the input / output interrupt processor of the receiver. When data arrives from the outside, an input / output interrupt occurs (s61), the input / output interrupt processor is automatically executed (s62), and the input / output interrupt processor drives the receiver ( s63).

상기와 같이 구동되는 수신기의 동작흐름도는 제7도에 도시된 바와 같다.The operation flow diagram of the receiver driven as described above is shown in FIG.

수신기는 먼저 접수된 데아타를 읽어 들이고(s71), 이때 먼저 데이타의 종류를 읽어들여(s72) 수신 기록부에 이미 수신된 적이 있는 데이타인지를 검사한다(s73).The receiver first reads the received data (s71), first reads the type of data (s72) and checks whether the data has already been received in the reception recorder (s73).

이것은 정상 수신 완료의 응답 송신이 분실된 경우로 상대방에서는 정상 수신 여부를 알 수 없어 제9도의 단게 s95에서 다시 전송한 경우이다.This is a case where the response transmission of the normal reception completion is lost and the other party does not know whether or not the normal reception is successful and transmits it again at step s95 of FIG.

만약 이미 수신한 적이 있는 데이타의 경우라면(s74) 반복하여 수신되었음을 알리는 반복 수신 응답을 전송한다(s74).If the data has already been received (s74), a repeated reception response indicating that it has been repeatedly transmitted is transmitted (s74).

그렇지 않으면 처음 수신된 것으로 수신 등록부에 기록하고(s75), 정상 수신 응답을 전송한다.Otherwise, it is recorded as the first received in the reception register (s75) and transmits a normal reception response.

이어서, 통신별 처리방법 저장기를 검색하여(s77), 해당 처리방법을 인출하고(s78), 이를 수행한다(s79).Subsequently, the processing method storage unit for each communication is searched (s77), the processing method is fetched (s78), and this is performed (s79).

이상과 같이, 본 발명의 동기 및 비동기 통신장치는 동기적 통신 뿐 아니라 비동기적 통신을 지원하여 보다 폭 넓은 종류의 통신용 프로그램 수행기를 만들어 통신 프로그램이 보다 통신을 자유롭게 할 수 있으며, 통신 프로그램의 설계자가 통신 프로그램의 설계를 쉽게 할 수 있는 장점을 갖는다.As described above, the synchronous and asynchronous communication apparatus of the present invention supports asynchronous communication as well as synchronous communication to make a wider variety of communication program performers, so that the communication program can freely communicate more. It has the advantage of easy design of communication program.

Claims (3)

다중 작업 컴퓨터내의 통신 응용 프로그램들 간의 통신 및 상기 다중 작업 컴퓨터들이 연결된 네트워크상의 통신 응용 프로그램들 간의 통신을 위한 통신장치에 있어서, 상기 통신 응용프로그램을 수행하는 통신 응용 프로그램 수행기와; 상기 통신 응용 프로그램 수행기에서 부여한 데이타의 전송 요구에 따라 데이타를 송신하는 송신기와, 상기 송신기의 송신 사실에 대한 정보를 기록하는 송신 기록부와, 상기 송신기에 의해 동작되어 일정시간 간격으로 상기 송신기를 구동시키는 상기 송신기의 송신 상태의 주기적인 검사를 위한 인터럽트 시계로 구성되는 송신부와; 상기 송신부로부터 전송되는 데이타를 수신하는 수신기와, 상기 수신기의 수신동작을 제어하는 입출력 인터럽트 처리기와, 상기 수신기에 수신되는 데이타가 이전에 수신된 데이타와 동일한지를 확인하기 위한 수신 기록부와, 상기 수신되는 데이타가 상기 수신 기록부에 의해 새로운 데이타인 경우 해당되는 통신처리 방법을 수행하기 위한 통신별 처리방법 저장기로 구성되는 수신부로 이루어져, 상기 송신부와 수신부 및 통신 응용 프로그램 수행기가 각각 독립적으로 분리되어 동작하는 것을 특징으로 하는 네트워크 응용 프로그램의 동기 및 비동기 통신장치.A communication apparatus for communication between communication application programs in a multi-working computer and communication between communication application programs on a network to which the multi-working computer is connected, comprising: a communication application performer for executing the communication application program; A transmitter for transmitting data according to a data transmission request given by the communication application program executor, a transmission recorder for recording information on the fact of transmission of the transmitter, and operated by the transmitter to drive the transmitter at regular time intervals A transmitter comprising an interrupt clock for periodically checking the transmission state of the transmitter; A receiver for receiving data transmitted from the transmitting unit, an input / output interrupt processor for controlling a reception operation of the receiver, a reception recording unit for confirming whether the data received by the receiver is identical to previously received data, and the received When the data is new data by the reception recorder consists of a receiver configured as a communication processing method storage for performing a corresponding communication processing method, wherein the transmitter, the receiver and the communication application program performer is separated and operated independently of each other. A synchronous and asynchronous communication device for network applications. 다중 작업 컴퓨터내의 통신 응용 프로그램들 간의 통신 및 상기 다중 작업 컴퓨터들이 연결된 네트워크상의 통신 응용 프로그램들 간의 통신을 위한 통신방법에 있어서, 상기 통신 응용 프로그램이 데이타를 전송하기 위해 송신부의 송신기를 호출하는 경우, 상기 송신기는 상기 데이타를 송신 데이타 저장기에 저장하고 전송하는 제1단계와; 상기 제1단계의 송신기의 전송후 전송 사실에 대한 정보를 송신 기록부에 기록하고 송신 상태의 주기적인 검사를 위하여 인터럽트 시계를 동작시키는 제2단계와; 상기 제2단계의 인터럽트 시계의 동작으로 일정 시간 간격으로 송신기가 구동하면서 계속해서 데이타를 전송하는 제3단계와; 제3단계로부터 데이타가 수신되는 경우, 수신부의 입출력 인터럽트 처리기의 동작에 의해 수신기를 동작시키는 제4단계와; 제4단계의 수행에 따라 상기 수신기가 수신 기록부를 조사하여 이전에 수신된 데이타와 동일한 데이타인지를 검사하는 제5단계와; 제5단계로부터 상기 데이타가 이전 데이타와 동일하지 않은 데이타인 경우라면 수신기가 데이타를 수신하고, 통신별 처리방법 저장기에 해당되는 통신처리를 수행하는 제6단계를 포함하여 수행되어 통신 응용 프로그램간의 동기 및 비동기 통신을 이룰 수 있는 것을 특징으로 하는 네트워크 응용 프로그램의 동기 및 비동기 통신방법.A communication method for communication between communication application programs in a multi-working computer and communication between communication application programs on a network to which the multi-working computers are connected, wherein the communication application program calls a transmitter of a transmitter to transmit data. The transmitter storing and transmitting the data to a transmission data store; A second step of recording information on the fact of transmission after transmission of said first step in a transmission recorder and operating an interrupt clock for periodic inspection of transmission status; A third step of continuously transmitting data while the transmitter is driven at a predetermined time interval by the operation of the interrupt clock of the second step; A fourth step of operating the receiver by the operation of the input / output interrupt processor of the receiver when data is received from the third step; A fifth step of checking, by the receiver, whether the reception data is the same data as previously received data by performing the fourth step; If the data from the fifth step is not the same as the previous data, the receiver receives the data, and includes a sixth step of performing a communication process corresponding to the communication method storage for each communication to perform synchronization between communication application programs And synchronous and asynchronous communication method of a network application, characterized in that it can achieve asynchronous communication. 제1항에 있어서, 상기 송신부는 통신응용 프로그램에서 부여한 데이타의 전송 요구에 따라 데이타를 송신 데이타 저장기에 저장한 후 반복 전송을 통하여 무손실 전송을 할 수 있고, 상기 수신부는 입출력 인터럽트 처리기에 의해서 수시로 수신을 할 수 있는 것을 특징으로 하는 네트워크 응용 프로그램의 동기 및 비동기 통신장치.The data transmission method of claim 1, wherein the transmission unit stores the data in the transmission data storage according to a data transmission request given by the communication application program and then performs lossless transmission through repeated transmission. Synchronous and asynchronous communication device of the network application, characterized in that it can be.
KR1019950047846A 1995-12-08 1995-12-08 Synchronous and asynchronous communication apparatus for communication between network application programs and method thereof KR0150285B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950047846A KR0150285B1 (en) 1995-12-08 1995-12-08 Synchronous and asynchronous communication apparatus for communication between network application programs and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950047846A KR0150285B1 (en) 1995-12-08 1995-12-08 Synchronous and asynchronous communication apparatus for communication between network application programs and method thereof

Publications (2)

Publication Number Publication Date
KR970056291A KR970056291A (en) 1997-07-31
KR0150285B1 true KR0150285B1 (en) 1998-11-02

Family

ID=19438595

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950047846A KR0150285B1 (en) 1995-12-08 1995-12-08 Synchronous and asynchronous communication apparatus for communication between network application programs and method thereof

Country Status (1)

Country Link
KR (1) KR0150285B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000055169A (en) * 1999-02-03 2000-09-05 최오식 Mux and Transfer Equipment of Asynchronous Signals

Also Published As

Publication number Publication date
KR970056291A (en) 1997-07-31

Similar Documents

Publication Publication Date Title
US6256659B1 (en) System and method for performing hybrid preemptive and cooperative multi-tasking in a computer system
US6662312B1 (en) Software-testing automation system
EP0404505B1 (en) Arrangement for integrating application in a digital processing system
US6237005B1 (en) Web server mechanism for processing multiple transactions in an interpreted language execution environment
Braun et al. Mobile agents: Basic concepts, mobility models, and the tracy toolkit
US6675196B1 (en) Universal protocol for enabling a device to discover and utilize the services of another device
US4805134A (en) Electronic system for accessing graphical and textual information
US7174361B1 (en) Scripting task-level user-interfaces
US8136127B1 (en) System and method for linearly managing client-server communication
EP0539313A2 (en) Method and apparatus for simulating I/O devices
KR20050085164A (en) Real-time web sharing system
JPH07146844A (en) Integrated automation development system and method for controlling and adjusting manufacturing device
US20030140272A1 (en) Method and data processing system providing checkpoint/restart across multiple heterogeneous computer systems
JPH1031637A (en) Agent communication equipment
US5712978A (en) System for control of remote processors
US5734871A (en) Method for and apparatus for controlling the execution of host computer application programs through a second computer
US20020116540A1 (en) Mobile agent transfer system, method and program for portable devices
US5974532A (en) System and method for generating responses for inputs using a hybrid state engine table
JP2002024054A (en) Client/server scan software architecture
KR0150285B1 (en) Synchronous and asynchronous communication apparatus for communication between network application programs and method thereof
KR100717242B1 (en) Error management system providing debugging information and method using the same
Clark et al. Multi-threading and message communication in Qu-Prolog
CN112988588B (en) Client software debugging method and device, storage medium and electronic equipment
EP1031922A2 (en) Method and system, and storage medium for installing an application program
US7013467B1 (en) System and method for managing computer system resources using command control vectors

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: 20080530

Year of fee payment: 11

LAPS Lapse due to unpaid annual fee