Changeset 4880 for nanovis/trunk
- Timestamp:
- Dec 19, 2014 3:43:54 PM (9 years ago)
- Location:
- nanovis/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/trunk/Command.cpp
r4823 r4880 1363 1363 1364 1364 char info[1024]; 1365 int cmdLength = 1365 int cmdLength = 1366 1366 sprintf(info, "nv>data tag %s min %g max %g vmin %g vmax %g\n", tag, 1367 1367 volume->wAxis.min(), volume->wAxis.max(), … … 2345 2345 nv::initTcl(Tcl_Interp *interp, ClientData clientData) 2346 2346 { 2347 /*2348 * Ideally the connection is authenticated by nanoscale. I still like the2349 * idea of creating a non-safe master interpreter with a safe slave2350 * interpreter. Alias all the nanovis commands in the slave. That way we2351 * can still run Tcl code within nanovis. The eventual goal is to create2352 * a test harness through the interpreter for nanovis.2353 */2354 2355 2347 Tcl_MakeSafe(interp); 2356 2348 -
nanovis/trunk/FlowCmd.cpp
r4353 r4880 1139 1139 #endif 1140 1140 TRACE("Enter: %s", cmd); 1141 FILE *f; 1142 f = popen(cmd, "r"); 1141 FILE *f = popen(cmd, "r"); 1143 1142 if (f == NULL) { 1144 1143 Tcl_AppendResult(interp, "can't run ffmpeg: ", … … 1149 1148 size_t total = 0; 1150 1149 for (;;) { 1151 ssize_t numRead;1152 1150 char buffer[BUFSIZ]; 1153 1151 1154 numRead = fread(buffer, sizeof(char), BUFSIZ, f);1152 ssize_t numRead = fread(buffer, sizeof(char), BUFSIZ, f); 1155 1153 total += numRead; 1156 1154 if (numRead == 0) { // EOF … … 1180 1178 sprintf(cmd,"nv>image -type movie -token \"%s\" -bytes %lu\n", 1181 1179 token, total); 1182 // Memory is freed by this call1180 // Memory for data payload is freed by this call 1183 1181 nv::sendDataToClient(cmd, data, total); 1184 1182 return TCL_OK; -
nanovis/trunk/nanovisServer.cpp
r4824 r4880 311 311 } 312 312 delete [] iov; 313 #endif 313 314 free(data); 314 #endif315 315 } 316 316
Note: See TracChangeset
for help on using the changeset viewer.