Invention Grant
- Patent Title: Method, apparatus, device and storage medium for function processing
-
Application No.: US17719666Application Date: 2022-04-13
-
Publication No.: US11620170B1Publication Date: 2023-04-04
- Inventor: Chaoyang Shang
- Applicant: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
- Applicant Address: CN Beijing
- Assignee: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
- Current Assignee: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
- Current Assignee Address: CN Beijing
- Priority: CN202111598174.9 20211224
- Main IPC: G06F9/54
- IPC: G06F9/54

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.
Information query