Ignore:
Timestamp:
Mar 18, 2008, 10:40:37 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Minor style changes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/net/sock.hpp

    r124 r125  
    77class net_address
    88{
    9   public :
     9public:
    1010  enum protocol { IP, IPX, MODEM, NETBIOS, OTHER };
    1111  virtual protocol protocol_type() const = 0;
     
    1818  virtual void store_string(char *st, int st_length) = 0;    // this should be able to be used get_node_address()
    1919  virtual ~net_address() {;}
    20 } ;
     20};
    2121
    2222
    2323class net_socket
    2424{
    25   public :
    26   enum socket_type { SOCKET_SECURE, SOCKET_FAST } ;
     25public:
     26  enum socket_type { SOCKET_SECURE, SOCKET_FAST };
    2727
    2828  virtual int error()                                              = 0;
     
    3939  virtual int listen(int port)       { return 0; }
    4040  virtual net_socket *accept(net_address *&from) { from=0; return 0; }
    41 } ;
     41};
    4242
    4343class net_protocol
    4444{
    45 public :
     45public:
    4646  enum debug_type
    4747    { DB_OFF,                // no debug printing
    4848      DB_MAJOR_EVENT,        // print major events
    4949      DB_IMPORTANT_EVENT,    // anything that would tell where a lockup occurs
    50       DB_MINOR_EVENT } ;     // anything you can think off
     50      DB_MINOR_EVENT };      // anything you can think of
    5151
    52 private :
     52private:
    5353  debug_type debug_setting;
    54 public :
     54public:
    5555
    5656  enum connect_flags
    5757  { READ_WRITE,          // flags for connect to server
    58          WRITE_ONLY } ;
     58         WRITE_ONLY };
    5959
    6060
     
    9292  net_protocol() { next=first; first=this; debug_setting=DB_OFF; }
    9393  virtual ~net_protocol() { cleanup(); }
    94 } ;
     94};
    9595
    9696#endif
Note: See TracChangeset for help on using the changeset viewer.