Changeset 129
- Timestamp:
- 03/10/09 14:52:58 (15 years ago)
- Location:
- vtcross/branches/bhilburn
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/branches/bhilburn/.gitignore
r122 r129 29 29 30 30 \.* 31 32 # Binary files 33 policy_demo -
vtcross/branches/bhilburn/src/policy_engines/default_policy_engine.cpp
r127 r129 1 #include <stdio.h> 1 #include <cstdlib> 2 #include <cstdio> 2 3 #include <sys/types.h> 3 4 #include <sys/socket.h> 4 5 #include <netinet/in.h> 5 6 #include <netdb.h> 6 #include <st dlib.h>7 #include <string> 7 8 #include <string.h> 8 9 9 10 #include "vtcross/cbr.h" 10 11 #include "vtcross/containers.h" 12 11 13 12 14 #define CR_PORT 30002 … … 96 98 ReadMessage(sockfd,buffer); 97 99 printf("Name: %s\n", buffer); 98 strcpy(pList[i].name, buffer); 100 pList[i].name = std::string(buffer); 101 // strcpy(pList[i].name.c_str(), buffer); 99 102 100 103 bzero(buffer,256); 101 104 ReadMessage(sockfd,buffer); 102 105 printf("Units: %s\n", buffer); 103 strcpy(pList[i].units, buffer); 106 pList[i].units = std::string(buffer); 107 // strcpy(pList[i].units.c_str(), buffer); 104 108 105 109 bzero(buffer,256);