发明名称 METHOD AND APPARATUS FOR READING DATA FROM A PROTOCOL STACK OF TRANSMISSION CONTROL PROTOCOL/INTERNET PROTOCOL
摘要 A method and device for accessing data through a stack of Transmission Control Protocol and Internetwork Protocols (TCP/IP). The method includes: obtaining an identifier that designates a plurality of UDP data packets in the User Datagram Protocol (UDP) of the TCP/IP stack; obtaining a total length of UDP data packets to be accessed; obtaining data in the protocol stack according the total length of foregoing designated UDP data packets; copying the designated UDP data packets to a user state. The method uses the identifier to access a plurality of UDP data packets and use the length to determine the number of accessible UDP data packets whereby it can access a plurality of UDP data packet each time. Moreover, it reduces the frequency of system calls when accessing an equal number of UDP data packets and shortens the time of system calls. Therefore, it improves the network I/O capacity.
申请公布号 US2011274118(A1) 申请公布日期 2011.11.10
申请号 US200913142406 申请日期 2009.12.24
申请人 SHENZHEN COSHIP ELECTRONICS CO., LTD 发明人 LIU FAN
分类号 H04L12/56 主分类号 H04L12/56
代理机构 代理人
主权项
地址