Appearance
Source files: 1 | Classes: 16 | Methods: 2 | Enums: 1
GTOS.Communications
CommsCoreAtomics
static class
Core atomic calculations for communications and content parsing.
Handles everything a standard computer user expects: web browsing, email, file transfer, etc.
CommsNetworks sits on top of SensorIO to provide user-level functionality:
- Web browsing (HTTP/HTTPS) → clean, ad-free content
- Email (SMTP/POP3/IMAP) → structured messages
- File transfer (FTP/SFTP) → reliable downloads
- Messaging (WebSocket/MQTT) → real-time chat
- Content parsing (HTML/XML/JSON/Markdown) → structured data
All network traffic flows through SensorIO unified sensor interface,
then CommsNetworks parses and structures the data into HMIArtifacts.
MIL-SPEC: Zero allocation after initialization, deterministic, thread-safe.
Source: CommsCoreAtomics.cs
Enumerations
ContentType
Content types for parsing
Values: HTML, XML, JSON, Markdown, PlainText, Email_MIME, RSS, Atom, CSS, JavaScript, PDF, InvalidParameter
Constants and Fields
CalculationFailure
const int
DirectoryListing
struct
Directory listing result
Source: CommsCoreAtomics.cs
Constants and Fields
DirectoryId
int
FileCount
int
Files
FileDescriptor[]
PathBufferId
int
Subdirectories
FileDescriptor[]
SubdirectoryCount
int
TotalSizeBytes
long
EmailAccount
struct
Email account configuration (uses SensorIO)
Source: CommsCoreAtomics.cs
Constants and Fields
AccountId
int
PasswordId
int
Protocol
EmailProtocol
SensorId
int
ServerAddressId
int
ServerPort
int
UsernameId
int
UseSSL
int
EmailAttachment
struct
Email attachment
Source: CommsCoreAtomics.cs
Constants and Fields
AttachmentId
int
Data
byte[]
DataSize
int
FileNameId
int
IsInline
int
MimeTypeId
int
EmailMessage
struct
Email message structure
Source: CommsCoreAtomics.cs
Constants and Fields
AttachmentCount
int
AttachmentIds
int[]
BCCAddressCount
int
BCCAddressIds
int[]
BodyHTMLId
int
BodyTextId
int
CCAddressCount
int
CCAddressIds
int[]
FromAddressId
int
IsFlagged
int
IsRead
int
MessageId
int
Priority
int
SubjectId
int
TimestampTicks
long
ToAddressCount
int
ToAddressIds
int[]
FileDescriptor
struct
File descriptor for file operations (uses SensorIO underneath)
Source: CommsCoreAtomics.cs
Constants and Fields
AccessMode
FileAccessMode
CreationTimeTicks
long
CurrentPosition
long
FileId
int
FileSizeBytes
long
IsDirectory
int
IsOpen
int
IsReadOnly
int
ModificationTimeTicks
long
PathBufferId
int
PathLength
int
Permissions
int
FileOperation
struct
File copy/move operation request
Source: CommsCoreAtomics.cs
Constants and Fields
DestinationPathId
int
DestinationSensorId
int
IsMove
int
OperationId
int
OverwriteExisting
int
SourcePathId
int
SourceSensorId
int
FileOperationProgress
struct
File operation progress
Source: CommsCoreAtomics.cs
Constants and Fields
BytesProcessed
long
ErrorCode
int
EstimatedSecondsRemaining
long
IsComplete
int
OperationId
int
PercentComplete
float
SpeedBytesPerSecond
long
TotalBytes
long
Methods
OpenFile
FileDescriptor OpenFile ( int storageSensorId, char[] path, int pathLength, FileAccessMode mode )
Open file for reading/writing (via SensorIO storage sensor)
FileTransferProgress
struct
File transfer progress
Source: CommsCoreAtomics.cs
Constants and Fields
BytesTransferred
long
ErrorCode
int
EstimatedSecondsRemaining
long
IsComplete
int
PercentComplete
float
RequestId
int
SpeedBytesPerSecond
long
TotalBytes
long
Methods
MakeHTTPRequest
HTTPResponse MakeHTTPRequest ( HTTPRequest request, char[] urlBuffer, char[] textBuffer )
Make HTTP request using SensorIO
FileTransferRequest
struct
File transfer request
Source: CommsCoreAtomics.cs
Constants and Fields
IsUpload
int
LocalPathId
int
PasswordId
int
Protocol
FileTransferProtocol
RemotePathId
int
RequestId
int
SensorId
int
ServerAddressId
int
ServerPort
int
UsernameId
int
FormElement
struct
Parsed form element
Source: CommsCoreAtomics.cs
Constants and Fields
ActionURLId
int
EncodingType
int
FormId
int
InputFieldCount
int
InputFieldIds
int[]
Method
HTTPMethod
SubmitButtonId
int
HTMLElement
struct
Parsed HTML element (intermediate format before HMIElement)
Source: CommsCoreAtomics.cs
Constants and Fields
AttributeCount
int
AttributeKeyIds
int[]
AttributeValueIds
int[]
CSSClassId
int
CSSIdId
int
ElementId
int
FirstChildId
int
NextSiblingId
int
ParentElementId
int
TextBufferId
int
TextLength
int
Type
HTMLElementType
HTTPRequest
struct
HTTP request configuration (uses SensorIO underneath)
Source: CommsCoreAtomics.cs
Constants and Fields
BodyBufferId
int
BodyLength
int
CookieBufferId
int
FollowRedirects
int
HeaderCount
int
HeaderKeyIds
int[]
HeaderValueIds
int[]
MaxRedirects
int
Method
HTTPMethod
SensorId
int
TimeoutMs
int
URLBufferId
int
URLLength
int
UseCookies
int
UserAgentId
int
HTTPResponse
struct
HTTP response data (from SensorIO)
Source: CommsCoreAtomics.cs
Constants and Fields
BodyByteCount
int
BodyBytes
byte[]
ContentTypeId
int
FinalURLId
int
HeaderCount
int
ResponseHeaderKeyIds
int[]
ResponseHeaderValueIds
int[]
ResponseTimeMs
long
StatusCode
int
InputField
struct
Parsed input field
Source: CommsCoreAtomics.cs
Constants and Fields
FieldId
int
IsRequired
int
MaxLength
int
MaxValue
float
MinLength
int
MinValue
float
NameId
int
PatternId
int
PlaceholderId
int
Type
InputType
ValueId
int
ParsedWebPage
struct
Complete parsed web page
Source: CommsCoreAtomics.cs
Constants and Fields
ElementCount
int
Elements
HTMLElement[]
FaviconURLId
int
FormCount
int
Forms
FormElement[]
ImageURLCount
int
ImageURLIds
int[]
InputFieldCount
int
InputFields
InputField[]
LinkURLCount
int
LinkURLIds
int[]
PageId
int
ScriptURLCount
int
TextBuffer
char[]
TextBufferSize
int
TitleId
int
URLBuffer
char[]
URLBufferSize
int
URLId
int
Generated from GTOS Savants source -- 2026-03-22

