diff --git a/examples/old/3_atomicity/amy.c b/examples/old/3_atomicity/amy.c deleted file mode 100644 index 7b5d12685dc22c4815fd826300c18f84d869a413..0000000000000000000000000000000000000000 --- a/examples/old/3_atomicity/amy.c +++ /dev/null @@ -1,34 +0,0 @@ -#include -#include -#include -#include "../../reowolf.h" -#include "../utility.c" - -int main() { // AMY - char * pdl = buffer_pdl("eg_protocols.pdl"); - - Connector* c = connector_new(); - printf("configuring...\n"); - - check("config ", connector_configure(c, pdl, "sync_two")); - check("bind 0 ", connector_bind_native(c, 0)); - check("bind 1 ", connector_bind_native(c, 1)); - check("bind 2 ", connector_bind_passive(c, 2, "127.0.0.1:7000")); - check("bind 3 ", connector_bind_passive(c, 3, "127.0.0.1:7001")); - printf("connecting...\n"); - check("connect", connector_connect(c, 5000)); - - int round, code; - for(round = 0; true; round++) { - printf("\nround %d\n", round); - - check("put ", connector_put(c, 0, "one", 3)); - check("put ", connector_put(c, 1, "two", 3)); - check("sync ", connector_sync(c, 10000)); - } - - printf("cleaning up...\n"); - connector_destroy(c); - free(pdl); - return 0; -} \ No newline at end of file