Property | Type | Description | |
---|---|---|---|
Address | MemBlock |
Property | Type | Description | |
---|---|---|---|
_read_thread | Thread | ||
_running | bool | ||
_send_buffer | byte[] | ||
_tap |
Method | Description | |
---|---|---|
Ethernet ( string device_name ) : Brunet |
Initializes the Ethernet device by opening the TAP device and starting the ISource thread.
|
|
Send ( ICopyable data ) : void |
Writes the data to the Ethernet device. The same max MTU byte array is always used to write the data to the device. Since the incoming data is an ICopyable, it needs to be copied to a single byte array before being sent to the unmanaged language. |
|
Stop ( ) : void |
Call this method when exiting to stop the _read_thread.
|
|
ToUri ( ) : String |
Method | Description | |
---|---|---|
ReadLoop ( ) : void |
The thread acting as the ISource for Ethernet, this is where reading of the TAP is performed. Use Subscribe to receive the packets coming from here. The same max MTU byte array is always read into. This is then copied to a minimum sized MemBlock and send to the subscriber. |
public Ethernet ( string device_name ) : Brunet | ||
device_name | string | |
return | Brunet |
public Send ( ICopyable data ) : void | ||
data | ICopyable | ICopyable of the data to be written. |
return | void |