Guest User

Untitled

a guest
Jun 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. fn test_run_server(){
  2. // initiate the enclave
  3. let enclave = match init_enclave();
  4. // run the server
  5. let handle = thread::spawn(move || {
  6. let mut server = surface_server::Server::new(constants::CONNECTION_STR, &enclave);
  7. server.run();
  8. });
  9. // wait for the thread
  10. handle.join().unwrap();
  11. // destroy the enclave
  12. enclave.destroy();
  13. }
Add Comment
Please, Sign In to add comment