摘要:
A method for handling multiple network packets is provided. The method is suitable for an embedded system connected to a network, wherein the embedded system includes a network device driver module and a simplified TCP/IP stack module. First, a plurality of network packets are received by the network device driver module. Then, each time when the network device driver module copies one of the network packets into a buffer of the simplified TCP/IP stack module, a packet length of the copied network packet is recorded in a packet information table. Thereafter, the network packets are obtained from the buffer one at a time according to the packet lengths recorded in the packet information table and analyzed by the simplified TCP/IP stack module. Thereby, multiple network packets can be handled correctly even in an environment wherein a simplified TCP/IP stack is used.
摘要:
A method for handling multiple network packets is provided. The method is suitable for an embedded system connected to a network, wherein the embedded system includes a network device driver module and a simplified TCP/IP stack module. First, a plurality of network packets are received by the network device driver module. Then, each time when the network device driver module copies one of the network packets into a buffer of the simplified TCP/IP stack module, a packet length of the copied network packet is recorded in a packet information table. Thereafter, the network packets are obtained from the buffer one at a time according to the packet lengths recorded in the packet information table and analyzed by the simplified TCP/IP stack module. Thereby, multiple network packets can be handled correctly even in an environment wherein a simplified TCP/IP stack is used.
摘要:
A method and a system for downloading network data into a multimedia player are provided. In the present method, a data getting instruction sent by the multimedia player is received and accordingly a webpage source code is captured. Then, a web server corresponding to the webpage source code is identified, and the webpage source code is parsed according to a type information of the web server to obtain a plurality of data url links conforming to a data attribute. Finally, network data corresponding to each of the data url links is downloaded through a network and provided to the multimedia player.