METHOD AND SYSTEM FOR REDIRECTING SERVICE APPLICATION TRAFFIC
Abstract:
The present disclosure provides a method and a system for redirecting service application traffic. The method includes traversing dlopen function and connect function in all dynamic libraries initially loaded by a service application module; mounting the dlopen function and the connect function, and replacing the dlopen function and the connect function with a self-defined mydlopen function and a self-defined myconnect function, respectively. Features of the mydlopen function include loading a new dynamic library, mounting the dlopen function and the connect function in the new dynamic library, and replacing the dlopen function and the connect function with the mydlopen function and the myconnect function, respectively. Features of the myconnect function include redirecting non-local traffic of the service application module to a proxy service module, receiving, by the proxy service module, the non-local traffic, and redirecting, by the proxy service module, the non-local traffic.
Public/Granted literature
Information query
Patent Agency Ranking
0/0