source: vtkvis/trunk/RendererCmd.h @ 6568

Last change on this file since 6568 was 6568, checked in by ldelgass, 8 years ago

Add optional idle timeout to vtkvis server. Allows server to close connection
and exit after a specified period without commands from the client.

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2004-2012  HUBzero Foundation, LLC
4 *
5 * Author: Leif Delgass <ldelgass@purdue.edu>
6 */
7
8#ifndef VTKVIS_RENDERERCMD_H
9#define VTKVIS_RENDERERCMD_H
10
11#include <sys/time.h>
12#include <cstdio>
13#include <tcl.h>
14
15#include "ReadBuffer.h"
16#ifdef USE_THREADS
17#include "ResponseQueue.h"
18#endif
19
20namespace VtkVis {
21
22#ifdef USE_THREADS
23extern void queueResponse(ClientData clientData, const void *bytes, size_t len,
24                          Response::AllocationType allocType,
25                          Response::ResponseType type = Response::DATA);
26#endif
27
28extern int processCommands(Tcl_Interp *interp,
29                           ClientData clientData,
30                           ReadBuffer *inBufPtr,
31                           int fdOut,
32                           struct timeval *timeout);
33
34extern int handleError(Tcl_Interp *interp,
35                       ClientData clientData,
36                       int status,
37                       int fdOut);
38
39extern void initTcl(Tcl_Interp *interp,
40                    ClientData clientData);
41
42extern void exitTcl(Tcl_Interp *interp);
43
44}
45
46#endif
Note: See TracBrowser for help on using the repository browser.