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/ServerSocket.h

    r2827 r2898  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    2 /*
    3  * ----------------------------------------------------------------------
    4  * Definition of the ServerSocket class
    5  *
    6  * ======================================================================
     2/* ======================================================================
    73 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
    84 *           Purdue Rendering and Perceptualization Lab (PURPL)
     
    1410 * ======================================================================
    1511 */
    16 #ifndef ServerSocket_class
    17 #define ServerSocket_class
     12#ifndef SERVERSOCKET_H
     13#define SERVERSOCKET_H
    1814
    1915#include "Socket.h"
     
    2117class ServerSocket : private Socket
    2218{
    23  private:
    24   bool connected;
     19public:
     20    ServerSocket(int port);
     21    ServerSocket()
     22    {}
     23    virtual ~ServerSocket();
    2524
    26  public:
     25    const ServerSocket& operator <<(const std::string&) const;
     26    const ServerSocket& operator >>(std::string&) const;
    2727
    28   ServerSocket ( int port );
    29   ServerSocket (){};
    30   virtual ~ServerSocket();
     28    bool send(char* s, int size) const;
     29    int recv(char* s, int size) const;
    3130
    32   const ServerSocket& operator << ( const std::string& ) const;
    33   const ServerSocket& operator >> ( std::string& ) const;
     31    bool accept(ServerSocket&);
    3432
    35   bool send(char* s, int size) const;
    36   int recv( char* s, int size) const;
     33    void set_non_blocking(bool val);
     34    bool is_connected();
     35    bool set_connected(bool val);
    3736
    38   bool accept ( ServerSocket& );
    39 
    40   void set_non_blocking(bool val);
    41   bool is_connected();
    42   bool set_connected(bool val);
     37private:
     38    bool connected;
    4339};
    4440
    45 
    4641#endif
Note: See TracChangeset for help on using the changeset viewer.