The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.
The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.
Patent No.:
Date of Patent:
Apr. 04, 2023
Filed:
Apr. 13, 2022
Beijing Bytedance Network Technology Co., Ltd., Beijing, CN;
Chaoyang Shang, Beijing, CN;
BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD., Beijing, CN;
Abstract
Embodiments of the present disclosure provide a method, apparatus, device and storage medium for function processing. The method comprises: loading a first core library in a preset application program, wherein the first core library injects a proxy connect function in the first core library to a second core library to perform centralized management of the invoking of a preset socket, the second core library including a preset connect function, the preset connect function being used to establish a connection with the preset socket; injecting a custom connect function to the second core library based on a preset injection method corresponding to the proxy connect function; in accordance with a determination that the preset application program invokes the preset connect function via the second core library, invoking the custom connect function instead to implement a custom logic so as to delegate the preset socket. With the above technical solution, the injection of codes for delegating socket can be reduced, and the stability and performance of the application program can be guaranteed.