Explorar el Código

Stub for networking code

Ian Goldberg hace 1 año
padre
commit
c136753b60
Se han modificado 3 ficheros con 19 adiciones y 0 borrados
  1. 9 0
      App/net.cpp
  2. 6 0
      App/net.hpp
  3. 4 0
      App/teems.cpp

+ 9 - 0
App/net.cpp

@@ -0,0 +1,9 @@
+#include "config.hpp"
+#include "net.hpp"
+
+bool net_setup()
+{
+    bool ret = true;
+
+    return ret;
+}

+ 6 - 0
App/net.hpp

@@ -0,0 +1,6 @@
+#ifndef __NET_HPP__
+#define __NET_HPP__
+
+bool net_setup();
+
+#endif

+ 4 - 0
App/teems.cpp

@@ -7,6 +7,7 @@
 #include "sgx_tseal.h"
 #include "Untrusted.hpp"
 #include "config.hpp"
+#include "net.hpp"
 
 static bool hexdump(FILE *outf, const char *label, void *p, size_t len)
 {
@@ -200,6 +201,9 @@ int main(int argc, char **argv)
     if (!config_parse(config, myname)) {
         exit(1);
     }
+    if (!net_setup()) {
+        exit(1);
+    }
 
     sgx_destroy_enclave(global_eid);