Changeset 160 for vtcross/branches/bhilburn/src/policy_engines
- Timestamp:
- 03/13/09 16:44:03 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/branches/bhilburn/src/policy_engines/policy_demo.cpp
r156 r160 20 20 #include "vtcross/components.h" 21 21 #include "vtcross/containers.h" 22 #include "vtcross/debug.h" 22 23 #include "vtcross/error.h" 23 24 #include "vtcross/socketcomm.h" 24 25 26 #define CR_PORT 3000227 25 28 26 … … 33 31 ERROR(1, "Usage: %s hostname port\n", argv[0]); 34 32 33 LOG("Opening the client socket.\n"); 35 34 int32_t socketFD = ClientSocket(argv[1], argv[2]); 36 35 … … 38 37 policyEngine.RegisterComponent(socketFD); 39 38 39 LOG("Waiting for signal...\n"); 40 40 while(1) { 41 41 policyEngine.WaitForSignal(socketFD);