Ignore:
Timestamp:
Mar 29, 2012, 11:38:42 PM (13 years ago)
Author:
ldelgass
Message:

janitorial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/socket/ClientSocket.h

    r2827 r2898  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    2 /*
    3  * ----------------------------------------------------------------------
    4  * Definition of the ClientSocket class
    5  *
    6  * ======================================================================
     2/* ======================================================================
    73 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
    84 *           Purdue Rendering and Perceptualization Lab (PURPL)
     
    1410 * ======================================================================
    1511 */
    16 #ifndef ClientSocket_class
    17 #define ClientSocket_class
     12#ifndef CLIENTSOCKET_H
     13#define CLIENTSOCKET_H
    1814
    1915#include "Socket.h"
     
    2117class ClientSocket : private Socket
    2218{
    23  public:
     19public:
     20    ClientSocket(std::string host, int port);
     21    virtual ~ClientSocket()
     22    {}
    2423
    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;
    2726
    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;
    3029
    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);
    3531};
    3632
    37 
    3833#endif
Note: See TracChangeset for help on using the changeset viewer.