Commit Graph

15730 Commits

Author SHA1 Message Date
Viktor Szakats
dfa7d8a708 2011-01-30 16:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbhpdf/harupdf.c
    ! Fixed to build in dynamic mode (HB_BUILD_CONTRIB_DYN=yes).
      Two recently added wrappers (PDF/A related) are not exported 
      from libharu, which may either be a design decision or a bug. 
      Requires further fix once we've found out.
2011-01-30 15:01:51 +00:00
Viktor Szakats
a1dbda51ad 2011-01-30 15:51 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbolesrv.c
    ! Fixed doubly defined symbols in HB_BUILD_CONTRIB_DYN=yes.
      'hbmaindllp.lib(dllpcode.obj) : error LNK2005: _DllMain@12 already defined in hbolesrv.obj'
      OLE server code will be left out of the .dll version of hbwin lib, 
      please refine it if needed.
2011-01-30 14:52:42 +00:00
Viktor Szakats
fd56026109 2011-01-30 15:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/listbox.prg
    ! LISTBOX(): Fixed RTE (and 5.3 incompatibility) when 
      non-logical/non-NIL type is passed as 5th parameter.
      This makes the ListBox() example included in 5.3 NG behave 
      exactly the same in Harbour as in C5.3. (Yes, the 
      example passes wrong parameter, plus it has a compiler 
      stopping typo, and it still RTEs even after the fix, 
      so better find some better example.)
2011-01-30 14:39:55 +00:00
Viktor Szakats
8a16d1405a 2011-01-30 00:27 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/listbox.prg
    ! Fixed casing in some words in license gone wrong in a very 
      old reformatting session.
2011-01-29 23:28:17 +00:00
Viktor Szakats
045014a57f 2011-01-30 00:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/listbox.prg
    ! _LISTBOX_(): Fixed very old bug (can't access ViewVC ATM, but around ~r7550)
      causing incompatibility with C5.3 regarding IsOpen initial value. It was
      wrongly initialized by parameter what is now correctly renamed to lScrollBar.
      Was wrongly named lIsOpen before this fix.
    % Don't pass default style value to ScrollBar()
2011-01-29 23:22:39 +00:00
Viktor Szakats
f13db9bff6 2011-01-29 20:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
  * utils/hbmk2/hbmk2.*.po
    ! Fixed RTE in FindNewerHeaders() when using autohbc feature.
      (it's regression from around 2010-08-05 15:58 UTC+0200 Viktor Szakats)
    + Added -head=dep option to help.
2011-01-29 19:29:55 +00:00
Przemyslaw Czerpak
e0f6cdda77 2011-01-29 18:50 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbmk2/hbmk2.prg
    ! fixed dependences checking for -head=full and @.clp files
    + added automatic dependencies checking for .prg files using .d
      files generated by harbour compiler (-head=dep)
    ; TODO: extend it for .c files and GCC based compilers
2011-01-29 17:50:40 +00:00
Viktor Szakats
8874af4808 2011-01-29 16:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/einstvar.prg
  * src/rtl/einstv52.prg
    * Fixed to use manifest constants. Two more.
2011-01-29 15:33:49 +00:00
Viktor Szakats
3572482250 2011-01-29 16:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/listbox.prg
    * Internal var renamed to reflect its type.

  * src/rtl/einstvar.prg
  * src/rtl/einstv52.prg
    * Fixed to use manifest constants.

  * utils/hbrun/hbrun.prg
    ! Fixed to allow case-insensitive match for headers on 
      non-*nix platforms.
2011-01-29 15:26:56 +00:00
Przemyslaw Czerpak
5e2d58dff3 2011-01-29 14:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbmk2/hbmk2.prg
    ! remove .d files from .hbmk working dir when -clean option is used
    ! do not ignore dependencies list read from .d files
    * check dependencies specified by .d files for .c and .o files
      generated from .prg ones
    % some minor optimizations
    ; TOFIX: it's not safe to call FindNewerHeaders() with 3-rd parameter
             set to NIL (RTE) and HBMK2 does it when -autohbc option is used
2011-01-29 13:01:10 +00:00
Viktor Szakats
9bf9f22397 2011-01-29 00:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* package/winuni/mpkg_win_uni.bat
  * package/winuni/mpkg_win_uni.nsi
    + Added hbnetio management console to winuni distro.
      (only the 32-bit build, because the 64-bit has no
      advantage at all in case of this thin client app)
2011-01-29 07:11:45 +00:00
Viktor Szakats
965bbf4750 2011-01-29 00:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/make.hbs
    + Defined _HB_BUILD_=yes to tell .hbp files we're building
      for a Harbour build.

  * contrib/hbnetio/utils/hbnetio/hbnetioc.hbp
  * contrib/hbformat/utils/hbformat.hbp
    + Tweak to not build in -shared mode when directly building
      the .hbp file (and not as part of Harbour build).

  * contrib/hbnetio/utils/hbnetioq/hbnetioq.hbp
  * contrib/hbide/hbide.hbp
    + Added tweak to build in shared mode when building as
      part of Harbour build. This will make the distro size 
      noticeably smaller.

  * contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    + Show server config feature converted to client-server.
2011-01-28 23:13:55 +00:00
Viktor Szakats
56c37735f7 2011-01-28 23:35 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbplist
    + Added hbnetioc to tools automatically built.
      This is management console for hbnetio deamon.

  * contrib/hbnetio/utils/hbnetio/hbnetioc.hbp
    * Tweak to build hbformat in shared mode for
      win/wce/os2 systems.
2011-01-28 22:38:00 +00:00
Viktor Szakats
f000df1353 2011-01-28 21:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.hu_HU.po
    ! Minor fix.

  * utils/hbmk2/hbmk2.prg
    ! Resolved TOFIXes related to cygwin.
    + Added -head=dep option. Nothing fancy, just making room for it.
2011-01-28 20:42:09 +00:00
Viktor Szakats
f07d02c3a0 2011-01-28 11:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Changed to use hb_milliSeconds() to measure build time
      when using -debugtime option. This will now work precisely
      for builds taking more than 1 day.
2011-01-28 10:03:57 +00:00
Viktor Szakats
9cc967e87b 2011-01-28 01:35 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    * Cleaned up Harbour build specific information in generated
      comment.
2011-01-28 00:35:56 +00:00
Viktor Szakats
49a19f18d0 2011-01-28 01:27 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    + Added experimental support for creating extern headers in .hbx.
      It's currently only supported for static libs (-hblib mode),
      and only for gcc based compilers (can be extended to all
      platorms where 'nm' tool is available), msvc, pocc, watcom
      and bcc compilers. Some of these have not been tested.
      The feature implements the same functionality which already
      exists in Harbour build system (enabled with HB_REBUILD_EXTERN=yes),
      but now integrated into hbmk2 and with few minor enhancements.
2011-01-28 00:28:31 +00:00
Viktor Szakats
7a46f701c1 2011-01-27 20:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
  * contrib/hbnetio/utils/hbnetio/netiocmd.prg
    * Minor cleanups.

  * examples/pp/pp.c
  * examples/pp/hbpragma.c
  * examples/pp/hbppcore.c
  * examples/pp/hbppcomp.c
  * examples/pp/hbppdef.h
    * Reformatted with uncrustify. Still an amazing tool.
2011-01-27 19:54:35 +00:00
Przemyslaw Czerpak
6ad722ca12 2011-01-27 20:46 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/examples/pp/hbppdef.h
  * harbour/examples/pp/hbpragma.c
    * updated to compile with current header files.
2011-01-27 19:46:38 +00:00
Viktor Szakats
4ab21df05c 2011-01-27 14:30 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/hbnetio.hbp
  * contrib/hbnetio/utils/hbnetio/hbnetioc.hbp
  * contrib/hbnetio/utils/hbnetio/netiosrv.prg
  + contrib/hbnetio/utils/hbnetio/netiocon.prg
  - contrib/hbnetio/utils/hbnetio/netiocui.prg
  + contrib/hbnetio/utils/hbnetio/netiocmd.prg
    + Split netiocui.prg into cmdline tool and
      console logic. The latter is now used by both 
      the daemon tool and cmdline tool.
2011-01-27 13:30:44 +00:00
Viktor Szakats
9b10f7e0f3 2011-01-27 13:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbplist
  - contrib/hbnetio/utils/netiosrq
  + contrib/hbnetio/utils/hbnetio
  - contrib/hbnetio/utils/netiosrv
  + contrib/hbnetio/utils/hbnetioq
    * Renaming second pass.
2011-01-27 12:55:29 +00:00
Viktor Szakats
f7381c653d 2011-01-27 13:49 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbplist
  - contrib/hbnetio/utils/netiosrv/netiosrv.hbp
  + contrib/hbnetio/utils/netiosrv/hbnetio.hbp
  - contrib/hbnetio/utils/netiosrv/netiocui.hbp
  + contrib/hbnetio/utils/netiosrv/hbnetioc.hbp
  - contrib/hbnetio/utils/netiosrq/netiosrq.hbp
  + contrib/hbnetio/utils/netiosrq/hbnetioq.hbp
    ! Renamed back to get in sync with installer.
    ; TOFIX: Change hbnetioq to a pure management client without
             embedded server daemon code. Pritpal, can you do it?
    ; TODO: Change hbnetio to be pure server daemon and add separate
            management console tool. Or, it's possible to put the
            console UI in a lib and keeping it included in daemon
            for convenience.
2011-01-27 12:50:02 +00:00
Viktor Szakats
94f676343b 2011-01-27 12:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
    * Marked TODOs/TOFIXes DONE.
2011-01-27 11:27:36 +00:00
Viktor Szakats
888e666f9c 2011-01-27 10:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/tget.prg
    * Formatting.

  * contrib/hbnetio/utils/netiosrv/netiocui.prg
    + Added some SETs.
2011-01-27 09:22:02 +00:00
Przemyslaw Czerpak
7caf68b601 2011-01-27 07:29 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rdd/wacore.c
    % minor optimization

  * harbour/src/rdd/usrrdd/usrrdd.c
    + extended USRRDD_ID() to accept RDD name as parameter

  * harbour/src/rdd/usrrdd/rdds/arrayrdd.prg
  * harbour/src/rdd/usrrdd/rdds/logrdd.prg
    ! fixed to not use:
         ( AScan( RDDLIST( RDT_FULL ), "ARRAYRDD" ) - 1 )
      to extract RDD ID.
      In theory it could work if RDDLIST( 0 ) is used instead
      of RDDLIST( RDT_FULL ) anyhow it's much more efficient to
      simply store RDD ID in static variable inside *_GETFUNCTABLE()
      function
2011-01-27 06:29:31 +00:00
Viktor Szakats
314a8a3fa5 2011-01-27 01:30 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocui.prg
    + Added 'clientinfo <ip:port>' console command. This will
      display the self-identification variable sent by the client
      to the server on connect. It's fully up to the client what
      this info contains. The command works for both normal
      and management connections.
    + Added 'adminfo' console command to list management client
      connections.
    + Added stream based "cargo" data exchange based on Przemek's
      code, purely as an experiment. Cargo data will be shown
      in connection lists.
    % Optimized out redundant connector code in console UI.
2011-01-27 00:30:26 +00:00
Przemyslaw Czerpak
6e1a0844d2 2011-01-27 00:22 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcompdf.h
  * harbour/src/compiler/hbmain.c
    * save and restore compiler settings when separated .prg files are
      compiled as different modules. Files compiled as single module
      (i.e. by .clp files, #included, added by DO ... [WITH ...], etc.)
      are still compiled using the same settings inheriting any modifications
      introduced by #pragma. It's intentional behavior.
2011-01-26 23:22:54 +00:00
Przemyslaw Czerpak
f3259b2cab 2011-01-26 23:56 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
  * harbour/src/pp/ppcore.c
    ! added resetting some internal PP states in hb_pp_reset()
2011-01-26 22:56:48 +00:00
Viktor Szakats
e5f2b0b9ae 2011-01-26 23:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiocui.prg
    + Shows server address in prompt when connected.
    + Shows server address when connecting.
2011-01-26 22:23:01 +00:00
Viktor Szakats
4215550198 2011-01-26 23:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocui.prg
    + RPC command names changed to begin with "hbnetiomgm_" (instead of "netio_")
    % Using constants for default ip/port and showing them
      dynamically in help screens.
    + Cleaned CUI options now there is simple -addr=<ip[:port]> format
      supported.
    * CUI option -adminpass= renamed to -pass=.
    + CUI now supports disconnect/connect command on the console.
      connect will ask for the password if omitted.
      It also means that console can now be in 'disconnected' state.
      This will be the mode it starts up when no password is
      specced on the cmdline.
2011-01-26 22:15:15 +00:00
Viktor Szakats
738886616f 2011-01-26 20:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiocui.prg
    * Minor correction in help screen.
2011-01-26 19:59:10 +00:00
Viktor Szakats
8f6d24f46f 2011-01-26 20:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
    + Added 'netio_ping' RPC function.
      (utilitzed to detect broken connection. Is there a better way?)

  * contrib/hbnetio/utils/netiosrv/netiosrv.hbp
  - contrib/hbnetio/utils/netiosrv/netiocmd.prg
  + contrib/hbnetio/utils/netiosrv/netiocui.prg
    * Renamed console UI source.
    + Added 'exit' command to console UI, to
      simply exit the console.
    + Added detection of lost connection in console UI.
    % Deleted NETIO_DISCONNECT() call. Not needed ti
      NETIO_GETCONNCETION().
    + Added support for standalone console UI
      build mode. Added required entry/cmdline help functions.
    + Added error msg when connection to server management
      failed.

  + contrib/hbnetio/utils/netiosrv/netiocui.hbp
    + Added .hbp file for standalone console UI.
2011-01-26 19:38:09 +00:00
Przemyslaw Czerpak
3444dfc907 2011-01-26 19:08 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/hbpp.c
    * modified syntax info to keep output well formatted for 80 columns
  * harbour/src/pp/hbpp.1
    * updated

  * harbour/src/rdd/dbf1.c
  * harbour/src/rdd/delim1.c
  * harbour/src/rdd/sdf1.c
  * harbour/contrib/rddsql/sqlbase.c
    ! added protection against GPF when wrong field index is passed to
      {GET|PUT}VALUE[FILE]() methods
2011-01-26 18:08:34 +00:00
Viktor Szakats
c731995d06 2011-01-26 18:06 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Help text now show port and iface defaults.
    + Client info is now stored in the connection
      table (not used anywhere ATM). Finally solved it by
      using thread ID to identify connections in RPC server side.
    + Added thread ID to the per connection data structure.
    + 'show' command now shows thread ID instead of ordinal.
2011-01-26 17:08:30 +00:00
Viktor Szakats
48ab3218bd 2011-01-26 13:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    ! 'netio_logconn()' RPC was returning wrong value.
    + Console UI extended to use NETIO_GETCONNECTION() and
      use pConnection to make RPC calls. Which opens the door
      to support multiple server connections at the same time.
    + Added experimental code for management client indentification.
      Currently the management client will identify itself right
      after connection, and this information will be shown on the
      server console.
    ; QUESTION: How to find out in an RPC call on the server side,
                which connection it belongs to?
    ; QUESTION: Should NETIO_DISCONNECT() support optional pConnection
                parameter (instead of IP/port pair)?
2011-01-26 12:56:04 +00:00
Pritpal Bedi
6836b6dde7 2011-01-25 23:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/xbpmenubar.prg
    ! Fixed: a stupid untested typo.
2011-01-26 07:18:19 +00:00
Viktor Szakats
adfd4ba175 2011-01-26 02:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Console UI moved to separate thread and it's now fully
      contained in netiocmd.prg. The only communication between
      console UI and netio server is via remote management RPC
      interface.
      This means the console UI can be easily removed or moved
      to separate executable.
    + Added -noui cmdline option which disables interactive console.
    ; Little rough around the edges, but it show the capabilities.
2011-01-26 01:11:04 +00:00
Pritpal Bedi
89e22b7cbe 2011-01-25 14:41 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbnetio/utils/netiosrq/netiosrq.hbp
    % Fix to previous partial fix.
2011-01-25 22:43:28 +00:00
Viktor Szakats
19bc39e837 2011-01-25 23:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/tests/netiomt1.prg
    + Added 'netio_conninfo' remote mgmnt command.
      It will return all client connections in an array of hashes.
2011-01-25 22:33:36 +00:00
Viktor Szakats
7cd5839b6e 2011-01-25 23:13 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
  + contrib/hbnetio/tests/netiomt1.prg
    + Added secondary server interface for remote management. Little hacky
      and incomplete yet.
      New options added: -adminport, -adminiface, -adminpass
    + Added remote management function: "netio_shutdown" (similar to 'quit' command)
    + Added 'shconn' and 'noshconn' commands to enable/disable 
      console feedback when client connects/disconnects.
      (this is permanently enabled for management connections)
2011-01-25 22:13:28 +00:00
Pritpal Bedi
09ac1e8abf 2011-01-25 13:34 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbnetio/utils/netiosrq/netiosrq.hbp
    % Fixed: wrong path.

  * contrib/hbnetio/utils/netiosrq/netiosrq.prg
    ! Adopted: Latest changes in netio_* API.
    + Implemented: Bytes sent and received per connection.
2011-01-25 21:39:13 +00:00
Pritpal Bedi
e72c7b3cb1 2011-01-25 12:16 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/hbxbp.hbx
    ! Auto-changed.
      I should have taken care of it with my last commit.
      I really apologize for lapse in concentration.
2011-01-25 20:20:05 +00:00
Viktor Szakats
791cb5e88a 2011-01-25 18:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Added command to enable/disable incoming connections.
      (noconn/conn commands)
      It makes client crash with read error, so I'm not sure if
      this is good solution, or how to solve it better.
    * Renamed 'conn' command to 'show'.
2011-01-25 17:11:53 +00:00
Viktor Szakats
ad8e69dbee 2011-01-25 17:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Added command to stop specific or every connection.
      Using 'stop <ip:port>' or 'stop all'.
2011-01-25 16:54:18 +00:00
Przemyslaw Czerpak
a05a2ec496 2011-01-25 16:54 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/itemapi.c
    * do not clear parameter when NULL item is passed to
      hb_itemParamStore*() functions

  * harbour/contrib/hbnetio/netiosrv.c
  * harbour/contrib/hbnetio/readme.txt
    - removed NETIO_SRVSOCKET()

  * harbour/ChangeLog
    * marked TODO as DONE
2011-01-25 15:54:46 +00:00
Viktor Szakats
e19f36ccc3 2011-01-25 16:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
    * Minors.

  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    - Deleted now completed TODO items.
2011-01-25 15:40:22 +00:00
Viktor Szakats
6aa074cd5b 2011-01-25 15:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
    * Eliminated netio_srvSocket() call.
    + Displaying bytes sent and received.
    + Displaying connection status.
    ; TOFIX: NETIO_SRVINFO_PEERADDRESS doesn't seem to work, returning NIL (or nothing),
             it's possible I'm missing something.
2011-01-25 14:58:22 +00:00
Viktor Szakats
9b70178aee 2011-01-25 15:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.hbp
    ! Corrected relative path to hbnetio.hbc

  * contrib/hbnetio/hbnetio.hbc
    ! Added missing incpath option.

  * contrib/hbnetio/hbnetio.ch
  * contrib/hbnetio/netiosrv.c
    ! Typo: NETIO_SRVINFO_PEERADDRES -> NETIO_SRVINFO_PEERADDRESS

  * contrib/hbnetio/netiosrv.c
    - Deleted: NETIO_OPENFILESCOUNT().
    ; TODO: Pls update netiosrq to use the new interface.
            Same for netiosrv. I'll do it in next commit.

  * contrib/hbnetio/hbnetio.ch
    ! Added notice that this .ch file is used also by .c code.
2011-01-25 14:28:48 +00:00
Przemyslaw Czerpak
1a44f58622 2011-01-25 14:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapiitm.h
  * harbour/src/vm/itemapi.c
    + added new C function hb_itemParamStoreRelease()
    * modified hb_itemParamStore*() functions to accept NULL items

  + harbour/contrib/hbnetio/hbnetio.ch
  * harbour/contrib/hbnetio/netio.h
  * harbour/contrib/hbnetio/netiosrv.c
  * harbour/contrib/hbnetio/readme.txt
    + extended NETIO_SRVSTATUS() function so now it can be used to
      extract some additional information about connection socket:
         NETIO_SRVSTATUS( <pConnectionSocket>
                          [, <nStreamID> | <nSrvInfo>, @<xData> ] )
                  -> <nStatus>
      <nSrvInfo> can be:
         NETIO_SRVINFO_FILESCOUNT
         NETIO_SRVINFO_BYTESSENT
         NETIO_SRVINFO_BYTESRECEIVED
         NETIO_SRVINFO_PEERADDRES

    ; TODO: please eliminate NETIO_SRVSOCKET() from any code using it.
            It's too danger so I'll remove this function from HBNETIO soon.
            NETIO_SRVOPENFILESCOUNT() is also redundant now and can be
            replaced by:
               NETIO_SRVSTATUS( pConnSock, NETIO_SRVINFO_FILESCOUNT, @nCount )
            so it can be removed too.
2011-01-25 13:19:32 +00:00
Viktor Szakats
eb7c0ce7a4 2011-01-25 12:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.prg
  * contrib/hbnetio/utils/netiosrv/netiocmd.prg
    + Added 'conn' console command to show number of connections
      and show information for all connections. The data includes
      IP and port, time of connection, no. of open files.
      Utilizing some concepts from Pritpal's netiosrq code, but
      rewritten, so new code doesn't use STATIC var, it's
      little bit more efficient. I didn't implement unfinished
      features, like byte counting.
2011-01-25 11:12:31 +00:00