Cosmos.Sys
Boot configurations for Cosmos.
One of these configurations should be called from the first line of any Cosmos-based operating system.
For now we just have default, but can add others in the future.
Boot the kernel using default boot-configuration.
Initializes basic hardware like CPU, serialports, PCI, Keyboard and blockdevices.
Later properties will be added, which will alter this.
However if no properties are changed from defaults, and Execute is called it should
perform a default boot.
Represents an established TCP connection between this host and another
Send a string to the remote host
String to be sent
Send a raw byte buffer to the remote host
Byte buffer with data to send
Close down an active connection
Data Received callback function
Data Received callback function
Remote IP Endpoint
Local IP Endpoint
Returns true if the current connection is active
Initializes the Packet with some data and sets a size for the header. This is used to determine the size of the bytearray.
A bytearray used to initialize the size of the packet.
Used to determine the difference between the header and the body.
Always 0
Concludes the Packet
Data Received function delegate for UDP protocol
Endpoint that data was received from
Data received in the packet
New TCP Client connection delegate
Instance of the that represents the connection
TCP Client Data Received delegate
instance that data was received on
Byte buffer of the received data
TCP Client disconnection delegate
Instance of the that represents the connection
Implements a TCP/IP Stack on top of Cosmos
Initialize the TCP/IP Stack variables
Configure the IP address setup for a given network card
Network Device to configure
Configuration
This function must be called repeatedly to keep the TCP/IP Stack going.
Will later be called by a background thread in the kernel
Can be used to test pinging to a network address from Cosmos
IP Address of destination
Subscribe to a UDP port to listen to data received on a specific port number
Only one listener allowed
Port number to listen on
delegate to call when data is received
Unsubscribe from existing subscription to a UDP port
Port number to unsubscribe from
Send a UDP packet to a destination device
IP address of destination
Source port
Destination port to send data to
Data to be sent
Add a TCP listener to the specified port
Port number to listen on
Callback function that is called when a new client connects
Initialized the IPv4 packet.
Concludes the IP4Packet by setting checksum, etc.
Calculates and saves the checksum for the IPv4 packet.
Concludes the ICMP Packet by setting checksum, etc.
Calculates and saves the checksum for the ICMP packet
Get a single directory from the given path.
Absolute path
Retrieves an array of FilesystemEntries (i.e. Directories and Files) in the gives Directory path.
Directory to search in. Can be absolute and relative.
All Directories and Files in the given path.
Get a single volume
Retrieves all files and directories in the given directory entry.
Must be a Directory entry.
Retrieves the drive filesystem from the drivenumber in the path.
The posistion of the drive number in the path.
A filesystem
Checks if the given directory exists on disk.
Can be both relative and absolute path.
Retrieve multiple directories from the given directory.
Retrieve a specific file with the given path.
Get all the files in the given directory.
Get the files in the given Directory entry
Must be a Directory
Get the logical drives found. Formatted as 1:\