source: geovis/trunk/RendererCmd.h @ 6716

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

Add optional idle timeout to geovis server

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