Class NetworkDevice
Inheritance
System.Object
NetworkDevice
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Cosmos.HAL2.dll
Syntax
public abstract class NetworkDevice
Constructors
|
Improve this Doc
View Source
NetworkDevice()
Declaration
protected NetworkDevice()
Fields
|
Improve this Doc
View Source
DataReceived
Declaration
public DataReceivedHandler DataReceived
Field Value
Properties
|
Improve this Doc
View Source
CardType
Declaration
public abstract CardType CardType { get; }
Property Value
|
Improve this Doc
View Source
Devices
Declaration
public static List<NetworkDevice> Devices { get; }
Property Value
|
Improve this Doc
View Source
MACAddress
Declaration
public abstract MACAddress MACAddress { get; }
Property Value
|
Improve this Doc
View Source
Name
Declaration
public abstract string Name { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
NameID
Declaration
public string NameID { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Ready
Declaration
public abstract bool Ready { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
BytesAvailable()
Declaration
public abstract int BytesAvailable()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Enable()
Declaration
public abstract bool Enable()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetDeviceByName(String)
Declaration
public static NetworkDevice GetDeviceByName(string nameID)
Parameters
Type |
Name |
Description |
System.String |
nameID |
|
Returns
|
Improve this Doc
View Source
IsReceiveBufferFull()
Declaration
public abstract bool IsReceiveBufferFull()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSendBufferFull()
Declaration
public abstract bool IsSendBufferFull()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
QueueBytes(Byte[])
Add bytes to the transmit buffer queue.
Declaration
public virtual bool QueueBytes(byte[] buffer)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
bytes array to queue.
|
Returns
Type |
Description |
System.Boolean |
TRUE on success.
|
Exceptions
Type |
Condition |
System.ArgumentOutOfRangeException |
Thrown on memory error.
|
System.OverflowException |
Thrown if buffer length is bigger than Int32.MaxValue.
|
|
Improve this Doc
View Source
QueueBytes(Byte[], Int32, Int32)
Add bytes to the transmit buffer queue.
Declaration
public abstract bool QueueBytes(byte[] buffer, int offset, int length)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
bytes array to queue.
|
System.Int32 |
offset |
Offset of the data in the buffer.
|
System.Int32 |
length |
Data length.
|
Returns
Type |
Description |
System.Boolean |
TRUE on success.
|
Exceptions
Type |
Condition |
System.ArgumentOutOfRangeException |
Thrown on memory error.
|
System.OverflowException |
Thrown if length is bigger than Int32.MaxValue.
|
|
Improve this Doc
View Source
ReceiveBytes(Byte[], Int32, Int32)
Declaration
public abstract bool ReceiveBytes(byte[] buffer, int offset, int max)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
|
System.Int32 |
offset |
|
System.Int32 |
max |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ReceivePacket()
Declaration
public abstract byte[] ReceivePacket()
Returns
Type |
Description |
System.Byte[] |
|