Changeset 2500
- Timestamp:
- Sep 8, 2011, 10:08:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vtkvis_threaded/RpVtkRendererCmd.cpp
r2499 r2500 4890 4890 * (using a slider on the client). The down side is you don't render 4891 4891 * until there's a lull in the command stream. If the client needs an 4892 * image, it can issue a "ppmflush" command. That breaks us out of the4892 * image, it can issue an "imgflush" command. That breaks us out of the 4893 4893 * read loop. 4894 4894 */ … … 4912 4912 while (select(1, &readFds, NULL, NULL, tvPtr) > 0) { 4913 4913 if (fgets(buffer, BUFFERSIZE, fin) == NULL) { 4914 ERROR("Failed to read from client: %s", strerror(errno)); 4915 exit(1); /* Terminate the server if we can't 4916 * communicate with the client 4917 * anymore. */ 4914 /* Terminate the server if we can't 4915 * communicate with the client 4916 * anymore. */ 4917 if (feof(fin)) { 4918 INFO("Exiting server on EOF from client"); 4919 exit(0); 4920 } else { 4921 ERROR("Exiting server, failed to read from client: %s", 4922 strerror(errno)); 4923 exit(1); 4924 } 4918 4925 } 4919 4926 buffer[BUFFERSIZE] = '\0'; … … 4922 4929 status = ExecuteCommand(interp, &command); 4923 4930 if (status == TCL_BREAK) { 4924 return 1; /* This was caused by a " ppmflush"4931 return 1; /* This was caused by a "imgflush" 4925 4932 * command. Break out of the read loop 4926 4933 * and allow a new image to be … … 4976 4983 Tcl_CreateObjCommand(interp, "glyphs", GlyphsCmd, clientData, NULL); 4977 4984 Tcl_CreateObjCommand(interp, "heightmap", HeightMapCmd, clientData, NULL); 4985 Tcl_CreateObjCommand(interp, "imgflush", ImageFlushCmd, clientData, NULL); 4978 4986 Tcl_CreateObjCommand(interp, "legend", LegendCmd, clientData, NULL); 4979 4987 Tcl_CreateObjCommand(interp, "lic", LICCmd, clientData, NULL); 4980 4988 Tcl_CreateObjCommand(interp, "molecule", MoleculeCmd, clientData, NULL); 4981 4989 Tcl_CreateObjCommand(interp, "polydata", PolyDataCmd, clientData, NULL); 4982 Tcl_CreateObjCommand(interp, "imgflush", ImageFlushCmd, clientData, NULL);4983 4990 Tcl_CreateObjCommand(interp, "pseudocolor", PseudoColorCmd, clientData, NULL); 4984 4991 Tcl_CreateObjCommand(interp, "renderer", RendererCmd, clientData, NULL); … … 4990 4997 /** 4991 4998 * \brief Delete Tcl commands and interpreter 4992 *4993 4999 */ 4994 5000 void Rappture::VtkVis::exitTcl(Tcl_Interp *interp) … … 5003 5009 Tcl_DeleteCommand(interp, "glyphs"); 5004 5010 Tcl_DeleteCommand(interp, "heightmap"); 5011 Tcl_DeleteCommand(interp, "imgflush"); 5005 5012 Tcl_DeleteCommand(interp, "legend"); 5006 5013 Tcl_DeleteCommand(interp, "lic");
Note: See TracChangeset
for help on using the changeset viewer.