source: trunk/packages/vizservers/nanovis/socket/RenderClient.h @ 2798

Last change on this file since 2798 was 2798, checked in by ldelgass, 12 years ago

Add emacs mode magic line in preparation for indentation cleanup

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * ----------------------------------------------------------------------
4 * RenderClient.h: server with OpenRenderer engine
5 *
6 * ======================================================================
7 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
8 *           Purdue Rendering and Perceptualization Lab (PURPL)
9 *
10 *  Copyright (c) 2004-2006  Purdue Research Foundation
11 *
12 *  See the file "license.terms" for information on usage and
13 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14 * ======================================================================
15 */
16#ifndef _RENDER_CLIENT_H_
17#define _RENDER_CLIENT_H_
18
19#include "ClientSocket.h"
20#include "SocketException.h"
21#include <iostream>
22#include <string>
23
24
25class RenderClient{
26       
27private:
28        int socket_num;
29        std::string host;
30
31public:
32        ClientSocket* client_socket;
33        char* screen_buffer;
34        int screen_size; //units of byte
35        RenderClient();
36        RenderClient(std::string& remote_host, int port_num);
37        void send(std::string& msg);
38        void receive(std::string& msg);
39
40        bool receive(char* data, int size);
41        bool send(char* data, int size);
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.