source: trunk/gui/vizservers/nanovis/socket/RenderServer.h @ 259

Last change on this file since 259 was 226, checked in by mmc, 19 years ago
  • Added code for Wei's visualization server.
  • Fixed the energyLevels widget so that it doesn't barf when the user attempts to download its contents.
File size: 999 bytes
Line 
1/*
2 * ----------------------------------------------------------------------
3 * RenderServer.h: server with OpenRenderer engine
4 *
5 * ======================================================================
6 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
7 *           Purdue Rendering and Perceptualization Lab (PURPL)
8 *
9 *  Copyright (c) 2004-2006  Purdue Research Foundation
10 *
11 *  See the file "license.terms" for information on usage and
12 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * ======================================================================
14 */
15#ifndef _RENDER_SERVER_H_
16#define _RENDER_SERVER_H_
17
18#include "ServerSocket.h"
19#include "SocketException.h"
20#include <string>
21
22
23class RenderServer{
24       
25private:
26        ServerSocket* server_socket;
27        ServerSocket open_socket;
28        int socket_num;
29
30public:
31        RenderServer();
32        RenderServer(int port_num);
33        bool listen(std::string& data);
34        bool send(std::string& data);
35        bool send(char* data, int size); //send raw bytes
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.