Changeset 2898 for trunk/packages/vizservers/nanovis/socket/ClientSocket.h
- Timestamp:
- Mar 29, 2012, 11:38:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/socket/ClientSocket.h
r2827 r2898 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 /* 3 * ---------------------------------------------------------------------- 4 * Definition of the ClientSocket class 5 * 6 * ====================================================================== 2 /* ====================================================================== 7 3 * AUTHOR: Wei Qiao <qiaow@purdue.edu> 8 4 * Purdue Rendering and Perceptualization Lab (PURPL) … … 14 10 * ====================================================================== 15 11 */ 16 #ifndef C lientSocket_class17 #define C lientSocket_class12 #ifndef CLIENTSOCKET_H 13 #define CLIENTSOCKET_H 18 14 19 15 #include "Socket.h" … … 21 17 class ClientSocket : private Socket 22 18 { 23 public: 19 public: 20 ClientSocket(std::string host, int port); 21 virtual ~ClientSocket() 22 {} 24 23 25 ClientSocket ( std::string host, int port );26 virtual ~ClientSocket(){};24 const ClientSocket& operator <<(const std::string&) const; 25 const ClientSocket& operator >>(std::string&) const; 27 26 28 const ClientSocket& operator << ( const std::string&) const;29 const ClientSocket& operator >> ( std::string&) const;27 bool send(char* s, int size) const; 28 int recv(char* s, int size) const; 30 29 31 bool send(char* s, int size) const; 32 int recv( char* s, int size) const; 33 34 void set_non_blocking(bool val); 30 void set_non_blocking(bool val); 35 31 }; 36 32 37 38 33 #endif
Note: See TracChangeset
for help on using the changeset viewer.