Streaming media processing method and system
A processing method and a processing system technology, applied in the field of streaming media processing methods and systems, can solve the problems of limited number of client terminals, waste of CPU time, delay, etc., and achieve the effect of improving user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] refer to image 3 As shown, the embodiment of the present invention provides a streaming media processing method, including steps 301-304:
[0053] Step 301: Monitor each communication handle corresponding to the completion port; the communication handles are bound to the streaming media server port, and are bound to the completion port after establishing a connection with the client; the completion port includes tasks to be processed Queue, used to cache pending packets.
[0054] The streaming media server listens to each communication handle corresponding to the completion port; the communication handles are bound to the streaming media server port, and are bound to the completion port after establishing a connection with the client; equivalent to the completion port Bind with each corresponding client through each communication handle; the completion port includes a pending task queue for buffering data packets to be processed, that is, the data packets sent by each...
Embodiment 2
[0071] refer to Figure 4 As shown, the embodiment of the present invention provides a streaming media processing method, including steps 401-412:
[0072] Step 401: Monitor each communication handle, and bind the corresponding communication handle to the completion port if a client connection is detected.
[0073] The streaming media server monitors each communication handle, if it monitors the connection of the client, obtains the network address of the client, binds the network address of the client to the corresponding communication handle, and completes the Port binding is equivalent to binding the completion port to each client through each communication handle.
[0074] First, with reference to the description of step 301, the streaming media server needs to create a port, a communication handle and a thread pool, the communication handle has been bound with the port of the streaming media server, and the threads in the thread pool have been connected to the Complete ...
Embodiment 3
[0108] refer to Figure 5 As shown, the embodiment of the present invention provides a streaming media processing system, the system includes a streaming media server 50, and the streaming media server 50 includes:
[0109] The monitoring module 501 is used to monitor each communication handle corresponding to the completion port; the communication handles are bound to the streaming media server port, and are bound to the completion port after establishing a connection with the client; the completion port includes Pending task queue, used to buffer pending data packets;
[0110] The thread running judging module 502 is used to judge whether there is a working thread running if the data packet sent by the client is monitored;
[0111] Thread enabling module 503 is used to enable an idle thread in the thread pool to be a working thread if no working thread is running;
[0112] The processing module 504 is used for the worker thread to poll the pending task queue of the complet...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


