Method for reporting asynchronous data, electronic device and storage medium
AssigneeApollo Intelligent Connectivity (Beijing) Technology Co., Ltd.
InventorQianpeng Yao
Life of this patent
Estimating the term…
Loading patent…
AssigneeApollo Intelligent Connectivity (Beijing) Technology Co., Ltd.
InventorQianpeng Yao
Estimating the term…
A method for reporting asynchronous data and an electronic device are provided. The method includes: in response to satisfying a data reporting condition, calling a connection opening function for opening a Socket connection of a network resource, and generating a HypertextTransferProtocol (HTTP) request by the connection opening function, in which the HTTP request at least includes address information of a server and data to be reported; calling a writing function to write the HTTP request into an exclusive resource corresponding to the connection opening function, and sending the HTTP request to the server by the exclusive resource; and in response to that sending the HTTP request by the exclusive resource is completed, closing the exclusive resource by calling a close function, so as to stop receiving a feedback message of the HTTP request sent by the server, and terminate data reporting.
A method for reporting asynchronous data, comprising:
An electronic device, comprising:
A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor is caused to perform a method for reporting asynchronous data comprising:
Dependencies are inferred from the claim text.