A generic method for simulating socket requests
A general method and technology of request message, applied in the direction of transmission system, electrical components, etc., can solve the problems of hard-coded response requests, poor applicability, and lack of logical functions, etc., and achieve the effect of improving service performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0046] Such as figure 1 Shown the present invention simulates the general method of Socket request, comprises:
[0047] A. Read the configuration file preset by the Socket service. Through the configuration file, you can configure various information of the Socket service, and the program automatically parses and generates the service, and you can quickly create a new Socket service. The content of the configuration file includes:
[0048] 1. How many Socket services to start;
[0049] 2. The port number of each service and the name of each service;
[0050] 3. The name of the request processing class corresponding to each Socket service;
[0051] 4. The response processing class corresponding to each Socket service;
[0052] 5. The default message content of each Socket service response;
[0053] 6. The number of threads in the thread pool opened by each Socket;
[0054] 7. The delay time of each Socket response message;
[0055] 8. The request and response length ch...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
