Method, apparatus, device and storage medium for function processing
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 sec...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | 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. |
---|