Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 26. október 2026

Rozdiely pre libplaton/platon/net/connection.h medzi verziami 1.8 a 1.9

verzia 1.8, 2002/09/29 03:55:02 verzia 1.9, 2002/10/05 09:52:43
Riadok 1 
Riadok 1 
 /**************************************************************************  /**************************************************************************
  *                                                                        *   *                                                                        *
  *  Net connection non-object routines                                    *   *  Net TCP/IP connection routines                                        *
  *                                                                        *   *                                                                        *
  *  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.                                *
Riadok 13 
Riadok 13 
  **************************************************************************/   **************************************************************************/
   
 /**  /**
  * Net connection non-object routines   * Net TCP/IP connection routines
  *   *
  * @file        platon/net/connection.h   * @file        platon/net/connection.h
  * @author      Ondrej Jombik <nepto@pobox.sk>   * @author      Ondrej Jombik <nepto@pobox.sk>
  * @version     \$Id$   * @version     \$Platon: connection.h,v 1.8 2002/09/29 03:55:02 nepto Exp $
  * @date        2001-2002   * @date        2000-2002
  */   */
   
 #ifndef _PLATON_NET_CONNECTION_H  #ifndef _PLATON_NET_CONNECTION_H
Riadok 29 
Riadok 29 
 #  define NET_CONNECTION_EOL "\r\n"  #  define NET_CONNECTION_EOL "\r\n"
 #endif  #endif
   
 /** Default telnet port */  /** Default port (telnet) */
 #ifndef NET_CONNECTION_PORT  #ifndef NET_CONNECTION_PORT
 #  define NET_CONNECTION_PORT 23  #  define NET_CONNECTION_PORT 23
 #endif  #endif
   
 /** Telnet stream mode */  /** Stream mode */
 #ifndef NET_CONNECTION_FMODE  #ifndef NET_CONNECTION_FMODE
 #  define NET_CONNECTION_FMODE "rt+"  #  define NET_CONNECTION_FMODE "rt+"
 #endif  #endif
Riadok 44 
Riadok 44 
  *   *
  * @param       host            hostname   * @param       host            hostname
  * @param       port            port   * @param       port            port
  * @return      telnet connection stream (FILE *)   * @return      connection stream (FILE *)
  *   *
  * Note that ouput stream will be buffered.   * Note that ouput stream will be buffered.
  */   */
Riadok 60  extern "C" {
Riadok 60  extern "C" {
          *           *
          * @param       host            hostname           * @param       host            hostname
          * @param       port            port           * @param       port            port
          * @return      telnet connection handle or -1 on error           * @return      connection handle (socket) or -1 on error
          */           */
         int net_connection_connect(const char*host,int port);          int net_connection_connect(const char*host,int port);
   
         /**          /**
          * Read data from connection           * Read data from connection
          *           *
          * @param       handle  telnet connection handle           * @param       handle  connection handle (socket)
          * @retval      buffer  pointer where to store read data           * @retval      buffer  pointer where to store read data
          * @param       size    buffer size           * @param       size    buffer size
          * @return      count of read bytes or negative value on connection lost           * @return      count of read bytes or negative value on connection lost
Riadok 77  extern "C" {
Riadok 77  extern "C" {
         /**          /**
          * Read one line from connection           * Read one line from connection
          *           *
          * @param       handle  telnet connection handle           * @param       handle  connection handle (socket)
          * @retval      buffer  pointer where to store read data           * @retval      buffer  pointer where to store read data
          * @param       size    buffer size           * @param       size    buffer size
          * @return      count of read bytes or negative value on connection lost           * @return      count of read bytes or negative value on connection lost

Legend:
Odstranené z verzie1.8  
zmenené riadky
  Pridané vo verzii1.9

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok