Unit Network
From Ultibo.org
Return to Unit Reference
Contents
[hide]Description
Ultibo Network interface unit
To be documented
Constants
[Expand]
Network specific constants
NETWORK_*
[Expand]
Network device type constants
NETWORK_TYPE_*
[Expand]
Network device state constants
NETWORK_STATE_*
[Expand]
Network device status constants
NETWORK_STATUS_*
[Expand]
Network device flag constants
NETWORK_FLAG_*
[Expand]
Network device control code constants
NETWORK_CONTROL_*
[Expand]
Network lock state constants
NETWORK_LOCK_*
[Expand]
Network buffer size constants
NETWORK_BUFFER_*
[Expand]
Network event constants
NETWORK_EVENT_*
[Expand]
Network event signature constants
NETWORK_EVENT_SIGNATURE*
[Expand]
Network event state constants
NETWORK_EVENT_STATE_*
[Expand]
Network event flag constants
NETWORK_EVENT_FLAG_*
[Expand]
Adapter type constants
ADAPTER_TYPE_*
[Expand]
Adapter thread constants
ADAPTER_THREAD_*
[Expand]
Adapter state constants
ADAPTER_STATE_*
[Expand]
Adapter status constants
ADAPTER_STATUS_*
[Expand]
Configuration type constants
CONFIG_TYPE_*
[Expand]
Authentication type constants
AUTH_TYPE_*
[Expand]
Frame type constants
FRAME_TYPE_*
[Expand]
Configuration command constants
CONFIG_*
[Expand]
Authentication command constants
AUTH_COMMAND_*
[Expand]
Multicast addressing constants
MAX_MULTICAST_*
[Expand]
Hardware addressing constants
HARDWARE_ADDRESS_*
[Expand]
Media type constants
MEDIA_TYPE_*
[Expand]
Packet type constants
PACKET_TYPE_*
[Expand]
Ethernet network constants
*_ETHERNET_PACKET
[Expand]
Ethernet 802.3 network constants
LLC_HEADER_*
[Expand]
Ethernet SNAP network constants
SNAP_HEADER_*
[Expand]
Service set constants
SERVICE_SET_*
[Expand]
Network logging constants
NETWORK_LOG_*
[Expand]
Ethernet specific constants
ETHERNET_*
[Expand]
Ethernet specific size constants
ETHERNET_*_SIZE*
[Expand]
Network specific constants
[Expand]
Ethernet specific constants
Type definitions
To be documented
Public variables
Network logging
NETWORK_DEFAULT_LOG_LEVEL:LongWord = NETWORK_LOG_LEVEL_DEBUG;
|
Minimum level for Network messages. Only messages with level greater than or equal to this will be printed. |
NETWORK_LOG_ENABLED:Boolean;
|
Function declarations
Initialization functions
Network functions
[Expand]
function NetworkDeviceClose(Network:PNetworkDevice):LongWord;
Description: To be documented
[Expand]
function NetworkDeviceRead(Network:PNetworkDevice; Buffer:Pointer; Size:LongWord; var Length:LongWord):LongWord;
Description: To be documented
[Expand]
function NetworkDeviceWrite(Network:PNetworkDevice; Buffer:Pointer; Size:LongWord; var Length:LongWord):LongWord;
Description: To be documented
[Expand]
function NetworkDeviceControl(Network:PNetworkDevice; Request:Integer; Argument1:PtrUInt; var Argument2:PtrUInt):LongWord;
Description: To be documented
[Expand]
function NetworkBufferAllocate(Network:PNetworkDevice; var Entry:PNetworkEntry):LongWord;
Description: Allocate a transmit buffer from the specified network device, the returned entry will include a buffer for writing data to as well as an offfset value to allow the driver data to be written to the start of the buffer. When the data has been copied to the buffer, pass the entry to NetworkBufferTransmit.
[Expand]
function NetworkBufferRelease(Network:PNetworkDevice; Entry:PNetworkEntry):LongWord;
Description: Release a receive buffer to the specified network device, the entry must have been returned from NetworkBufferReceive
[Expand]
function NetworkBufferReceive(Network:PNetworkDevice; var Entry:PNetworkEntry):LongWord;
Description: Receive a completed receive buffer from the specified network device. The returned entry will contain a one or more packets of data to read from. When the data has been processed pass the returned buffer to NetworkBufferRelease.
[Expand]
function NetworkBufferTransmit(Network:PNetworkDevice; Entry:PNetworkEntry):LongWord;
Description: Transmit a completed transmit buffer to the specified network device. The entry must have been allocated using NetworkBufferAllocate.
[Expand]
function NetworkDeviceSetState(Network:PNetworkDevice; State:LongWord):LongWord;
Description: Set the state of the specified network and send a notification
[Expand]
function NetworkDeviceSetStatus(Network:PNetworkDevice; Status:LongWord):LongWord;
Description: Set the status of the specified network and send a notification
[Expand]
function NetworkDeviceCreateEx(Size:LongWord):PNetworkDevice;
Description: Create a new Network entry
[Expand]
function NetworkDeviceDestroy(Network:PNetworkDevice):LongWord;
Description: Destroy an existing Network entry
[Expand]
function NetworkDeviceRegister(Network:PNetworkDevice):LongWord;
Description: Register a new Network in the Network table
[Expand]
function NetworkDeviceDeregister(Network:PNetworkDevice):LongWord;
Description: Deregister a Network from the Network table
[Expand]
function NetworkDeviceFind(NetworkId:LongWord):PNetworkDevice;
Description: To be documented
[Expand]
function NetworkDeviceFindByName(const Name:String):PNetworkDevice; inline;
Description: To be documented
[Expand]
function NetworkDeviceFindByDescription(const Description:String):PNetworkDevice; inline;
Description: To be documented
[Expand]
function NetworkDeviceEnumerate(Callback:TNetworkEnumerate; Data:Pointer):LongWord;
Description: To be documented
[Expand]
function NetworkDeviceNotification(Network:PNetworkDevice; Callback:TNetworkNotification; Data:Pointer; Notification,Flags:LongWord):LongWord;
Description: To be documented
[Expand]
function NetworkEventAllocate(Callback:TNetworkEventCallback; Data:Pointer; Event:LongWord):PNetworkEvent;
Description: Create and Register a new Event entry in the Event table
[Expand]
function NetworkEventRelease(Event:PNetworkEvent):LongWord;
Description: Deregister and Destroy a Event from the Event table
[Expand]
function NetworkEventRegister(Callback:TNetworkEventCallback; Data:Pointer; Event:LongWord):THandle;
Description: Register a callback for one or more network events
[Expand]
function NetworkEventDeregister(Handle:THandle):LongWord;
Description: Deregister a network event callback
RTL network functions
Network helper functions
[Expand]
function NetworkDeviceCheck(Network:PNetworkDevice):PNetworkDevice;
Description: Check if the supplied Network is in the network table
[Expand]
function NetworkDeviceTypeToString(NetworkType:LongWord):String;
Description: To be documented
[Expand]
function NetworkDeviceStateToString(NetworkState:LongWord):String;
Description: To be documented
[Expand]
function NetworkDeviceStatusToString(NetworkStatus:LongWord):String;
Description: To be documented
[Expand]
function NetworkDeviceStateToNotification(State:LongWord):LongWord;
Description: Convert a Network state value into the notification code for device notifications
[Expand]
function NetworkDeviceStatusToNotification(Status:LongWord):LongWord;
Description: Convert a Network status value into the notification code for device notifications
[Expand]
function NetworkEventCheck(Event:PNetworkEvent):PNetworkEvent;
Description: Check if the supplied Event is in the event table
[Expand]
procedure NetworkLog(Level:LongWord; Network:PNetworkDevice; const AText:String);
Description: To be documented
[Expand]
procedure NetworkLogInfo(Network:PNetworkDevice; const AText:String);
Description: To be documented
[Expand]
procedure NetworkLogError(Network:PNetworkDevice; const AText:String);
Description: To be documented
[Expand]
procedure NetworkLogDebug(Network:PNetworkDevice; const AText:String);
Description: To be documented
[Expand]
function HardwareAddressToString(const AAddress:THardwareAddress):String;
Description: To be documented
[Expand]
function StringToHardwareAddress(const AAddress:String):THardwareAddress;
Description: To be documented
[Expand]
function CompareHardwareAddress(const AAddress1,AAddress2:THardwareAddress):Boolean;
Description: To be documented
[Expand]
function CompareHardwareDefault(const AAddress:THardwareAddress):Boolean;
Description: To be documented
[Expand]
function CompareHardwareBroadcast(const AAddress:THardwareAddress):Boolean;
Description: To be documented
[Expand]
function CompareHardwareMulticast(const AAddress:THardwareAddress):Boolean;
Description: To be documented
Return to Unit Reference