added networking to the enviroment

This commit is contained in:
afonya2 2025-06-11 19:43:53 +02:00
parent cca26d9fc3
commit f2220d1014
Signed by: afonya
GPG key ID: EBB9C4CAFAAFB2DC
4 changed files with 267 additions and 25 deletions

View file

@ -1,4 +1,4 @@
use std::{collections::HashMap, process, vec};
use std::{any::Any, collections::HashMap, process, vec};
use crate::{enviroment, errors::{create_error, print_error, ErrorSubType, ErrorType}, Context};
const ASXVERSION: [u8; 3] = [0,1,0];
@ -98,6 +98,7 @@ pub struct Machine {
pub call_stack: Vec<CallStack>,
pub env: HashMap<String, VMMemory>,
pub ctx: Vec<Context>,
pub storage: Vec<Box<dyn Any>>,
}
fn read_be_num(input: &[u8]) -> usize {
@ -520,6 +521,7 @@ impl Machine {
}],
env: enviroment::generate(),
ctx: ctx,
storage: Vec::new(),
};
}