Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn test_run_server(){
- // initiate the enclave
- let enclave = match init_enclave();
- // run the server
- let handle = thread::spawn(move || {
- let mut server = surface_server::Server::new(constants::CONNECTION_STR, &enclave);
- server.run();
- });
- // wait for the thread
- handle.join().unwrap();
- // destroy the enclave
- enclave.destroy();
- }
Add Comment
Please, Sign In to add comment