- Timestamp:
- 11/21/08 13:34:28 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/branches/trnewman/CR_shell/src/main_cognitive_engine.cpp
r68 r69 15 15 16 16 struct Utility { 17 char name[ 20];18 char units[ 20];19 char goal[ 20];17 char name[50]; 18 char units[50]; 19 char goal[50]; 20 20 /* string name; 21 21 string units; … … 33 33 /*string name; 34 34 string units;*/ 35 char name[ 20];36 char units[ 20];35 char name[50]; 36 char units[50]; 37 37 float min; 38 38 int numAffects; … … 44 44 struct Observable { 45 45 //string name; 46 char name[ 20];46 char name[50]; 47 47 Affect affection_list[10]; 48 48 int numAffects; … … 90 90 error("ERROR connecting");*/ 91 91 92 /*// send to server 92 93 printf("Please enter the message: "); 93 94 bzero(buffer,256); … … 96 97 if (n < 0) 97 98 error("ERROR writing to socket"); 98 bzero(buffer,256); 99 bzero(buffer,256);*/ 99 100 100 101 // read back xml information 101 int counter,i;102 int i; 102 103 Utility * uList[10]; 103 104 Parameter * pList[10]; … … 135 136 strcpy(uList[i]->units, buffer); 136 137 137 bzero(buffer,256);138 /*bzero(buffer,256); 138 139 n = recv(sockfd,buffer,255,0); 139 140 if (n < 0) 140 141 error("ERROR reading from socket"); 141 142 printf("%s ", buffer); 142 strcpy(uList[i]->goal, buffer); 143 strcpy(uList[i]->goal, buffer);*/ 143 144 144 145 /*bzero(buffer,256); … … 147 148 error("ERROR reading from socket"); 148 149 printf("%s ", buffer); 149 strcpy(uList[i]->target,buffer);*/150 uList[i]->target, atof(buffer);*/ 150 151 } 151 152