COMMUNICATION APPARATUS AND CONTROL METHOD THEREOF AND COMMUNICATION SYSTEM
First Claim
1. A communication apparatus comprising:
- a communication unit that communicates with a client by using a request/response communication protocol;
a processing unit that performs processing corresponding to a request received by the communication unit from the client, and enables the communication unit to send a response to the received request to the client; and
a control unit that, when the communication unit receives a predetermined polling request, and the processing unit receives another request from the client before sending a response to the predetermined polling request to the client, sends a cancellation response to the predetermined polling request from the communication unit, and causes the processing unit to execute processing corresponding to the other request.
1 Assignment
0 Petitions
Accused Products
Abstract
According to the present invention, response processing to a predetermined polling request is accepted from a client, and, even when a response to the request has not been sent, the client can shift to another processing by accepting a new request. Accordingly, a communication apparatus includes a communication unit that performs communication by using a request/response communication protocol; a processing unit that performs processing corresponding to a request received from a client, and sends a response to the client; and a control unit that, when receiving a predetermined polling request, and the processing unit receives another request from the client before sending a response to the predetermined polling request to the client, sends a cancellation response to the predetermined polling request, and causes the processing unit to execute processing corresponding to the other request.
-
Citations
12 Claims
-
1. A communication apparatus comprising:
-
a communication unit that communicates with a client by using a request/response communication protocol; a processing unit that performs processing corresponding to a request received by the communication unit from the client, and enables the communication unit to send a response to the received request to the client; and a control unit that, when the communication unit receives a predetermined polling request, and the processing unit receives another request from the client before sending a response to the predetermined polling request to the client, sends a cancellation response to the predetermined polling request from the communication unit, and causes the processing unit to execute processing corresponding to the other request. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A control method of a communication apparatus including a communication unit that communicates with a client by using a request/response communication protocol, the method comprising:
-
performing processing corresponding to a request received by the communication unit from the client, and enabling the communication unit to send a response to the received request to the client; and
,when the communication unit receives a predetermined polling request, and another request is received from the client before a response to the predetermined polling request is sent to the client, sending a cancellation response to the predetermined polling request from the communication unit, and executing processing corresponding to the other request. - View Dependent Claims (10)
-
-
11. A non-transitory computer readable storage medium storing a program that is read and executed by a computer including a communication unit that communicates with a client by using a request/response communication protocol, wherein the program causes the computer to:
-
perform processing corresponding to a request received by the communication unit from the client, and enable the communication unit to send a response to the received request to the client; and
,when the communication unit receives a predetermined polling request, and another request is received from the client before a response to the predetermined polling request is sent to the client, send a cancellation response to the predetermined polling request from the communication unit, and execute processing corresponding to the other request.
-
-
12. A communication system comprising:
- an imaging apparatus including a first communication unit; and
a terminal apparatus including a second communication unit,wherein the imaging apparatus functions as a server by using a request/response communication protocol with the first communication unit, wherein the terminal apparatus functions as a client by using a request/response communication protocol with the second communication unit, wherein the terminal apparatus includes; a first processing unit that sends a predetermined polling request to the imaging apparatus, and displays a menu of a plurality of processing items for the imaging apparatus; a second processing unit that, when one of the processing items of the menu is selected by a user before a response to the predetermined polling request is received from the imaging apparatus, sends a request for the selected processing item to the imaging apparatus, receives a cancellation response to the predetermined polling request, and thereafter shifts to processing corresponding to the request for the selected processing item; and a third processing unit that, when a response to the predetermined polling request is received from the imaging apparatus without any one of the processing items of the menu being selected by the user, shifts to processing for acquiring an image described in the response, wherein the imaging apparatus includes; a fourth processing unit that displays, when the predetermined polling request is received from the terminal apparatus during communication with the terminal apparatus, a list of imaged images stored in the imaging apparatus so as to be selectable by the user, accepts selection of an image by the user, and sends, when a sending instruction is input from the user, information specifying the selected image to the terminal apparatus as a response to the predetermined polling request; and a fifth processing unit that sends, when another request is received from the terminal apparatus before a response to the predetermined polling request is sent to the terminal apparatus by the fourth processing unit, a cancellation response to the predetermined polling request, and performs processing corresponding to the other request.
- an imaging apparatus including a first communication unit; and
Specification