Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 17, 2026

Diff for libplaton/platon/net/Connection.h between version 1.9 and 1.10

version 1.9, 2002/09/26 20:29:59 version 1.10, 2002/09/29 03:55:01
Line 1 
Line 1 
 /**************************************************************************  /**************************************************************************
  *                                                                        *   *                                                                        *
  *  Object-oriented telnet protocol header file                           *   *  Net connection class                                                  *
  *                                                                        *   *                                                                        *
  *  Programmed by Ondrej Jombik <nepto@pobox.sk>                          *   *  Programmed by Ondrej Jombik <nepto@pobox.sk>                          *
  *  Copyright (c) 2000 Condy software inc.                                *   *  Copyright (c) 2000 Condy software inc.                                *
Line 13 
Line 13 
  **************************************************************************/   **************************************************************************/
   
 /**  /**
  * Telnet protocol class   * Net connection class
  *   *
  * @file        platon/telnet/telnet.h   * @file        platon/net/Connection.h
  * @author      Ondrej Jombik <nepto@pobox.sk>   * @author      Ondrej Jombik <nepto@pobox.sk>
  * @version     \$Id$   * @version     \$Id$
  * @date        2000-2002   * @date        2000-2002
Line 24 
Line 24 
 /*  /*
  * Bez objektov uz ani krok. Ale nie vazne, toto vzniklo kvoli tomu,   * Bez objektov uz ani krok. Ale nie vazne, toto vzniklo kvoli tomu,
  * ze sa v buducnosti rata s niecim takym ako   * ze sa v buducnosti rata s niecim takym ako
  *     telnet_cnx atl_cnx[200]; for(k=...)atl_cnx[k].SetHost(...);   *     netConnection atl_cnx[200]; for(k=...)atl_cnx[k].SetHost(...);
  * Niezeby som chcel mat nejakom talkeri 200 dvojitych identit,   * Niezeby som chcel mat nejakom talkeri 200 dvojitych identit,
  * ale nikdy nevies kedy sa Ti nieco taketo zide...:)))   * ale nikdy nevies kedy sa Ti nieco taketo zide...:)))
  *   *
  * Nepto [1/4/2000]   * Nepto [1/4/2000]
  */   */
   
 #ifndef _PLATON_TELNET_TELNET_H  #ifndef _PLATON_NET_Connection_H
 #define _PLATON_TELNET_TELNET_H  #define _PLATON_NET_Connection_H
   
 /** Maximum hostname size */  /** Maximum hostname size */
 #ifndef TELNET_MAX_HOST_SIZE  #ifndef NET_CONNECTION_MAX_HOST_SIZE
 #  define TELNET_MAX_HOST_SIZE 100  #  define NET_CONNECTION_MAX_HOST_SIZE 100
 #endif  #endif
   
 /** End of line string; used by telnet_cnx::ReadLine() method. */  /** End of line string; used by netConnection::ReadLine() method. */
 #ifndef TELNET_EOL  #ifndef NET_CONNECTION_EOL
 #  define TELNET_EOL "\r\n"  #  define NET_CONNECTION_EOL "\r\n"
 #endif  #endif
   
 /** Default telnet port */  /** Default telnet port */
 #ifndef TELNET_PORT  #ifndef NET_CONNECTION_PORT
 #  define TELNET_PORT 23  #  define NET_CONNECTION_PORT 23
 #endif  #endif
   
 #ifdef __cplusplus  #ifdef __cplusplus
Line 55 
Line 55 
 /**  /**
  * Telnet protocol class   * Telnet protocol class
  *   *
  * @class       telnet_cnx <platon/telnet/telnet.h>   * @class       netConnection <platon/net/Connection.h>
  * @author      Ondrej Jombik <nepto@pobox.sk>   * @author      Ondrej Jombik <nepto@pobox.sk>
  * @version     \$Id$   * @version     \$Id$
  * @date        2000-2002   * @date        2000-2002
  */   */
 class telnet_cnx  class netConnection
 {  {
   private:    private:
     int handle;      int handle;
     int port;      int port;
     char host[TELNET_MAX_HOST_SIZE+1];      char host[NET_CONNECTION_MAX_HOST_SIZE+1];
     char*__rbuf;      char*__rbuf;
   
   public:    public:
Line 75  class telnet_cnx
Line 75  class telnet_cnx
          * @param       host            hostname           * @param       host            hostname
          * @param       port            port           * @param       port            port
          */           */
     telnet_cnx(const char*host=NULL,const int port=TELNET_PORT);      netConnection(const char*host=NULL,const int port=NET_CONNECTION_PORT);
   
     /**      /**
          * Object destructor           * Object destructor
          */           */
     ~telnet_cnx(void);      ~netConnection(void);
   
         /**          /**
          * @name Property setting methods           * @name Property setting methods
Line 206  class telnet_cnx
Line 206  class telnet_cnx
   
 #endif /* #ifdef _cplusplus */  #endif /* #ifdef _cplusplus */
   
 #endif /* #ifndef _PLATON_TELNET_TELNET_H */  #endif /* #ifndef _PLATON_NET_Connection_H */
   

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top