Commit Graph

6 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
8f0f023887 2009-10-18 13:47 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbsocket.h
  * harbour/src/rtl/hbsocket.c
    * added new function b_socketResolveInetAddr()

  * harbour/ChangeLog
    * minor formatting
2009-10-18 11:47:24 +00:00
Przemyslaw Czerpak
e4430be4de 2009-10-05 12:23 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbsocket.h
  * harbour/source/rtl/hbsocket.c
    + added new function hb_socketSetNoDelay() which turn off the nagle
      algorithm for the specified socket.
      The nagle algorithm says that we should delay sending
      partial packets in the hopes of getting more data.
      Be careful using this functions. It may help to improve performance
      in some cases but in some other it may cause very serious overhead.
      Programmer should well know what it does.
    * set socket error in all hb_socket[SG]et*() functions

  * harbour/contrib/hbnetio/netiocli.c
  * harbour/contrib/hbnetio/netiosrv.c
    * use hb_socketSetNoDelay() - it can be safely used in this code
      though it probably does not improve the speed because I used
      protocol which was nagle algorithm friendly. Anyhow now we
      can disable NETIO_SYNC messages without performance reduction
      due to bad interaction with nagle algorithm.
2009-10-05 10:23:50 +00:00
Viktor Szakats
db5bb770a7 2009-08-17 17:30 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsetup.h
    % Optimized out HB_OS_UNIX_COMPATIBLE. HB_OS_UNIX should be used
      instead. Since the definition logic for HB_OS_UNIX was completely
      different from HB_OS_UNIX_COMPATIBLE, it may be possible that
      it's not 100% the same as before, although their meaning was
      the same.
      HB_OS_UNIX_COMPATIBLE is still available for compatibility, but
      it's now marked with HB_LEGACY_LEVEL2 and will be removed in next
      major release.

  * include/hbapifs.h
  * include/hb_io.h
  * include/hbsocket.h
  * source/vm/set.c
  * source/debug/dbgentry.c
  * source/common/hbffind.c
  * source/rtl/fscopy.c
  * source/rtl/fstemp.c
  * source/rtl/gtstd/gtstd.c
  * source/rtl/gttrm/gttrm.c
  * source/rtl/version.c
  * source/rtl/hbsocket.c
  * source/rtl/copyfile.c
  * source/rtl/filesys.c
  * source/rtl/console.c
  * source/rtl/cputime.c
  * source/rtl/gtpca/gtpca.c
  * source/rtl/fssize.c
  * source/rtl/memofile.c
  * source/compiler/hbcomp.c
  * source/compiler/gencobj.c
  * contrib/hbct/files.c
  * contrib/xhb/xhbcopyf.c
  * contrib/xhb/hbserv.c
  * contrib/hbnf/getenvrn.c
    * HB_OS_UNIX_COMPATIBLE -> HB_OS_UNIX

  * config/global.cf
    * HB_UNIX_COMPATIBLE -> HB_OS_UNIX
2009-08-17 15:31:07 +00:00
Viktor Szakats
86fc847f7c 2009-07-28 13:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsocket.ch
  * include/hbsocket.h
  * source/rtl/hbsocket.c
  * source/rtl/hbinet.c
  * examples/uhttpd2/socket.c
  * examples/httpsrv/socket.c
    * Slightly renamed some constants to settle on a common
      prefix for all socket related ones: HB_SOCKET_*
      HB_SOCK_PF_*      -> HB_SOCKET_PF_*
      HB_SOCK_AF_*      -> HB_SOCKET_AF_*
      HB_SOCK_*         -> HB_SOCKET_PT_* (for protocol types)
      HB_SOCK_IPPROTO_* -> HB_SOCKET_IPPROTO_*
      HB_SOCK_SHUT_*    -> HB_SOCKET_SHUT_*
      HB_SOCK_FUNC      -> HB_SOCKET_FUNC

  * contrib/hbtip/thtml.prg
    * Minor formatting.
2009-07-28 11:56:55 +00:00
Viktor Szakats
1054de0e9b 2009-07-28 12:24 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbsocket.h
  * contrib/hbssl/hbssl.c
  * source/rtl/hbsocket.c
  * source/rtl/hbinet.c
  * examples/uhttpd2/socket.c
  * examples/httpsrv/socket.c
    * HB_SOCKET_T -> HB_SOCKET

  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * source/rtl/gtstd/gtstd.c
  * source/rtl/filesys.c
  * source/rtl/gtpca/gtpca.c
  * source/rtl/gtwvt/gtwvt.c
    ! Added casts for msvc64.
      Some C RTL functions in msvc64 expects file handles as 'int's.
      The rest is some non-critical stuff.
      Now only size_t to int/ULONG warnings remain in hbrtl.
    ; TOFIX: Plus these two:
      ../../../hbstrfmt.c(459) : warning C4244: 'argument' : conversion from '__int64' to 'ULONG', possible loss of data
      ../../../hbtoken.c(280) : warning C4244: '=' : conversion from '__int64' to 'ULONG', possible loss of data
2009-07-28 10:26:23 +00:00
Przemyslaw Czerpak
2abefe1b3e 2009-07-27 23:43 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbstack.h
    + added socket error codes to HB_IOERRORS

  * harbour/include/Makefile
  + harbour/include/hbsocket.ch
  + harbour/include/hbsocket.h
  * harbour/source/rtl/Makefile
  + harbour/source/rtl/hbsocket.c
    + added new BSD socket functions: hb_socket*(). They should be quite
      close to low level C socket interface with few modifications which
      help to hide some platform differences. Unfortunately we do not use
      autoconf so I had to arbitrary set which features are available
      on some platforms. In practice it means that it reduces portability
      to older OS-es, i.e. it should work with current Linux versions
      but it will not without some modifications in macros used to control
      supported features with older Linuxes using kernel 2.2 or 2.0.
      The same can happen with other *nix ports like Darwin, SunOS, HP-UX
      or with different versions of some Windows compilers. I also do not
      know which functionality is available in OS2 GCC ports and I would
      like to ask OS2 users to make tests and disable not working features.
      We also need tests with HP-UX, Darwin and SunOS.
      IP6 support is enabled only in *nixes. If Windows users are interested
      in IP6 then please add support for it. Most of Windows compilers do
      not support standard POSIX functions so I do not want to make it
      myself using unknown for me API without testing.
      In *nix builds PF_UNIX/PF_LOCAL sockets are also supported.
      Support for other socket types can be easy added if someone is
      interested in them.
      The constant values used in hbsocket.ch are equal to original BSD
      socket definitions. If it's necessary then it's possible to enable
      their translation inside hbsocket.c code though I do not think we
      will find such OS.
      The list of hb_socket*() functions was designed to cover all existing
      functionality in hbinet.c and socket.c. Most of functions supports
      timeout parameter what effectively allows to hide direct select()
      usage.
      Please make test with real applications and report any problems
      with hb_inet*() functions you will find.

  * harbour/source/vm/hvm.c
    * minor cleanup

  * harbour/source/rtl/hbi18n1.c
    * cleaned variable name

  * harbour/source/rtl/hbinet.c
  * harbour/examples/uhttpd2/socket.c
  * harbour/contrib/hbssl/hbssl.c
    * updated to use hb_socket*() functions

  * harbour/include/hbextern.ch
    * enabled HB_INET*() functions in DOS builds - they will simply return
      errors

  - harbour/include/hbapinet.h
    - removed old header file

  * harbour/source/pp/ppcore.c
    ! modified ENDTEXT marker to work also with comments in the same line
      It's more closer to Clipper though intentionally we are not fully
      CA-Cl*pper compatible here.
2009-07-27 21:43:31 +00:00