source: branches/blt4/packages/vizservers/nanovis/socket/RenderClient.h @ 2936

Last change on this file since 2936 was 2936, checked in by gah, 12 years ago

sync back with trunk

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