C# 클래스 Mosa.DeviceSystem.NetworkDevicePacketBuffer

파일 보기 프로젝트 열기: tgiphil/MOSA-Project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
countReceivePackets uint
countTransmitPackets uint
discardedReceivePackets uint
discardedTransmitPackets uint
maxReceiveQueue uint
maxTransmitQueue uint
networkDevice INetworkDevice
receiveLock SpinLock
receiveQueue LinkedList
transmitLock SpinLock
transmitQueue LinkedList

공개 메소드들

메소드 설명
GetPacketFromDevice ( ) : byte[]

Get packet from device.

NetworkDevicePacketBuffer ( INetworkDevice networkDevice ) : System.Collections.Generic

Initializes a new instance of the NetworkDevicePacketBuffer class.

NetworkDevicePacketBuffer ( INetworkDevice networkDevice, uint maxTransmitQueue, uint maxReceiveQueue ) : System.Collections.Generic

Initializes a new instance of the NetworkDevicePacketBuffer class.

Pulse ( ) : void

Pulse

QueuePacketForStack ( byte data ) : bool

Queues the packet for stack.

SendPacketToDevice ( byte data ) : bool

Sends the packet to device.

보호된 메소드들

메소드 설명
SendPackets ( ) : void

Sends the packets.

메소드 상세

GetPacketFromDevice() 공개 메소드

Get packet from device.
public GetPacketFromDevice ( ) : byte[]
리턴 byte[]

NetworkDevicePacketBuffer() 공개 메소드

Initializes a new instance of the NetworkDevicePacketBuffer class.
public NetworkDevicePacketBuffer ( INetworkDevice networkDevice ) : System.Collections.Generic
networkDevice INetworkDevice The network device.
리턴 System.Collections.Generic

NetworkDevicePacketBuffer() 공개 메소드

Initializes a new instance of the NetworkDevicePacketBuffer class.
public NetworkDevicePacketBuffer ( INetworkDevice networkDevice, uint maxTransmitQueue, uint maxReceiveQueue ) : System.Collections.Generic
networkDevice INetworkDevice The network device.
maxTransmitQueue uint The max transmit queue.
maxReceiveQueue uint The max receive queue.
리턴 System.Collections.Generic

Pulse() 공개 메소드

Pulse
public Pulse ( ) : void
리턴 void

QueuePacketForStack() 공개 메소드

Queues the packet for stack.
public QueuePacketForStack ( byte data ) : bool
data byte The data.
리턴 bool

SendPacketToDevice() 공개 메소드

Sends the packet to device.
public SendPacketToDevice ( byte data ) : bool
data byte The data.
리턴 bool

SendPackets() 보호된 메소드

Sends the packets.
protected SendPackets ( ) : void
리턴 void

프로퍼티 상세

countReceivePackets 보호되어 있는 프로퍼티

protected uint countReceivePackets
리턴 uint

countTransmitPackets 보호되어 있는 프로퍼티

protected uint countTransmitPackets
리턴 uint

discardedReceivePackets 보호되어 있는 프로퍼티

protected uint discardedReceivePackets
리턴 uint

discardedTransmitPackets 보호되어 있는 프로퍼티

protected uint discardedTransmitPackets
리턴 uint

maxReceiveQueue 보호되어 있는 프로퍼티

protected uint maxReceiveQueue
리턴 uint

maxTransmitQueue 보호되어 있는 프로퍼티

protected uint maxTransmitQueue
리턴 uint

networkDevice 보호되어 있는 프로퍼티

Network Device Packet Buffer
This class setups a transmit and receive between buffers between the Network Device and the TCP stack. Network devices will not have to setup their own in-memory buffers when hardware buffers become full.
protected INetworkDevice networkDevice
리턴 INetworkDevice

receiveLock 보호되어 있는 프로퍼티

protected SpinLock receiveLock
리턴 SpinLock

receiveQueue 보호되어 있는 프로퍼티

protected LinkedList receiveQueue
리턴 LinkedList

transmitLock 보호되어 있는 프로퍼티

protected SpinLock transmitLock
리턴 SpinLock

transmitQueue 보호되어 있는 프로퍼티

protected LinkedList transmitQueue
리턴 LinkedList