ring.h 標頭
網路會使用此標頭。 如需詳細資訊,請參閱:
ring.h 包含下列程序設計介面:
功能
NetRingAdvanceIndex NetRingAdvanceIndex 函式會向前推進 net ring 中的索引,並在必要時四處換行。 |
NetRingGetElementAtIndex NetRingGetElementAtIndex 函式會從 net ring 擷取元素。 |
NetRingGetFragmentAtIndex NetRingGetFragmentAtIndex 函式會從 net ring 擷取片段。 |
NetRingGetPacketAtIndex NetRingGetPacketAtIndex 函式會從 net ring 擷取封包。 |
NetRingGetRangeCount 計算指定之 net ring 緩衝區範圍中包含的項目數目。 |
NetRingIncrementIndex 傳回指定之索引值之後的下一個索引值,並視需要包裝到環形緩衝區的開頭。 |
結構
NET_RING _NET_RING 結構會指定由一或多個NET_PACKET或NET_FRAGMENT結構所組成的緩衝區。 |