C# Class Mosa.DeviceSystem.NetworkDevicePacketBuffer

Afficher le fichier Open project: tgiphil/MOSA-Project Class Usage Examples

Protected Properties

Свойство Type Description
countReceivePackets uint
countTransmitPackets uint
discardedReceivePackets uint
discardedTransmitPackets uint
maxReceiveQueue uint
maxTransmitQueue uint
networkDevice INetworkDevice
receiveLock SpinLock
receiveQueue LinkedList
transmitLock SpinLock
transmitQueue LinkedList

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
SendPackets ( ) : void

Sends the packets.

Method Details

GetPacketFromDevice() public méthode

Get packet from device.
public GetPacketFromDevice ( ) : byte[]
Résultat byte[]

NetworkDevicePacketBuffer() public méthode

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

NetworkDevicePacketBuffer() public méthode

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.
Résultat System.Collections.Generic

Pulse() public méthode

Pulse
public Pulse ( ) : void
Résultat void

QueuePacketForStack() public méthode

Queues the packet for stack.
public QueuePacketForStack ( byte data ) : bool
data byte The data.
Résultat bool

SendPacketToDevice() public méthode

Sends the packet to device.
public SendPacketToDevice ( byte data ) : bool
data byte The data.
Résultat bool

SendPackets() protected méthode

Sends the packets.
protected SendPackets ( ) : void
Résultat void

Property Details

countReceivePackets protected_oe property

protected uint countReceivePackets
Résultat uint

countTransmitPackets protected_oe property

protected uint countTransmitPackets
Résultat uint

discardedReceivePackets protected_oe property

protected uint discardedReceivePackets
Résultat uint

discardedTransmitPackets protected_oe property

protected uint discardedTransmitPackets
Résultat uint

maxReceiveQueue protected_oe property

protected uint maxReceiveQueue
Résultat uint

maxTransmitQueue protected_oe property

protected uint maxTransmitQueue
Résultat uint

networkDevice protected_oe property

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
Résultat INetworkDevice

receiveLock protected_oe property

protected SpinLock receiveLock
Résultat SpinLock

receiveQueue protected_oe property

protected LinkedList receiveQueue
Résultat LinkedList

transmitLock protected_oe property

protected SpinLock transmitLock
Résultat SpinLock

transmitQueue protected_oe property

protected LinkedList transmitQueue
Résultat LinkedList