C# Класс Mosa.DeviceSystem.NetworkDevicePacketBuffer

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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