Commit Graph

88 Commits

Author SHA1 Message Date
Viktor Szakats
56c0ad27a6 2011-02-17 00:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/hbnetio.hbp
  * contrib/hbrun/plugins.prg
  - contrib/hbnetio/utils/hbnetio/netioeng.prg
  + contrib/hbnetio/utils/hbnetio/netiomgm.prg
    * Renamed.

  - contrib/hbnetio/utils/hbnetio/hbnetioc.hbp
  - contrib/hbnetio/utils/hbnetio/netiocmd.prg
    - Deleted standalone hbnetio management console, now 
      built in hbrun as plugin.
2011-02-16 23:43:18 +00:00
Viktor Szakats
5d3c80c1ce 2011-02-16 22:16 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ contrib/hbrun/hbrun.rc
    + Missed from prev commit.
    ! Enable mft/ver features only for msvc, bcc and mingw, the 
      rest will die various deaths.
   
  * package/harb_win.rc
    * Tweak a little to not cause most RC to die.

  * contrib/hbnetio/utils/hbnetio/hbnetio.hbp
  * contrib/hbrun/hbrun.hbp
    * Enabled security options only on win platform.

  * contrib/hbrun/hbrun.hbp
    + Added msvcarm option to avoid fatal compiler error in headers.c.
2011-02-16 21:18:12 +00:00
Viktor Szakats
1c61148f95 2011-02-14 00:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netioeng.prg
  * contrib/hbrun/hbrun.prg
  * contrib/hbrun/hbrun.hbp
    + netio plugin now supports accepting cmdline parameters
    ! fixed domain handling
    + new 'about' netio command
    + selecting wrong domain will display available options
    * minor tweaks
    + Enabled -head=dep
2011-02-13 23:01:53 +00:00
Viktor Szakats
3d43725e29 2011-02-13 22:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbrun/hbrun.prg
  * contrib/hbrun/hbrun.hbp
  + contrib/hbrun/plugins.prg
    + Added plugin support.
    + Added hbnetio management console to hbrun, as plugin.
      Use: "netio.<command> <params>" format to access it.
      Or enter netio command domain with ".netio" and use
      regular netio commands. Exit netio command domain with
      "." command.

  * package/winuni/mpkg_win_uni.bat
  * package/winuni/mpkg_win_uni.nsi
  * contrib/hbplist
    - Stdalone hbnetio management console is not built or
      included in distro anymore. Use hbrun.

  * contrib/hbrun/hbrun.prg
  * contrib/hbrun/hbrun.hbp
  + contrib/hbrun/headers.prg
    * Moved headers to separate file.

  * contrib/hbrun/pullext.prg
    * Minor.

  * contrib/hbnetio/utils/hbnetio/netioeng.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    * Renamed entry function for console plugin.
2011-02-13 21:45:06 +00:00
Viktor Szakats
dd6e295f82 2011-02-13 19:20 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
+ contrib/hbnetio/utils/hbnetio/netioeng.prg
  * contrib/hbnetio/utils/hbnetio/hbnetio.hbp
  * contrib/hbnetio/utils/hbnetio/hbnetioc.hbp
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
  * contrib/hbnetio/utils/hbnetio/netiocmd.prg
    + netio management client-side command handling moved to 
      a separate module and rewritten to act as a command 
      handler plugin. This makes it possible to move the 
      whole logic inside console hosts, f.e. hbrun.
2011-02-13 18:21:48 +00:00
Viktor Szakats
9b3f2c7cd3 2011-02-08 13:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiocon.prg
    + Accepting notification events coming from the server
      in a separate thread, so now they are realtime-ish
      (it's poll). It's little rough around the edges yet.

  * contrib/hbnetio/utils/hbnetio/hbnetioc.hbp
    + Enabled MT mode also for console client.

  * contrib/hbnetio/utils/hbnetio/netiosrv.prg
    + Send out 'shutdown' notifications to mgmnt clients.
2011-02-08 12:43:29 +00:00
Viktor Szakats
19a62d6cf4 2011-02-08 11:05 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
  * contrib/hbnetio/utils/hbnetio/netiosrv.prg
    ! Set netio root data dir to 'data' subdir by default to
      avoid overwriting anything in the daemon's own
      directory (f.e. its settings)
    ! Set netio root data dir to invalid dir name ("*?:*?:")
      to prevent management clients to create any files
      on server. QUESTION: Is there a better way to prevent 
      RDD I/O redirection for given server session?
2011-02-08 10:06:24 +00:00
Pritpal Bedi
cb70125d53 2011-02-07 17:09 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbnetio/utils/hbnetioq/netiosrq.prg
    ! Enabled: "Stop" a connection, either via toolbar icon or 
      context menu on a connection row in the browser.
    % Fixed: to refresh browser every 3 seconds.
2011-02-08 01:13:07 +00:00
Viktor Szakats
0a54752987 2011-02-08 00:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbverdsp.c
    + Instead of adding "(UNICODE)" marker in build info for UNICODE 
      builds, now it will add "(WINANSI)" for non-UNICODE builds.

  * contrib/hbnetio/utils/hbnetio/netiosrv.prg
    * Using more hb_StrFormat()

  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    * Tweak to one cmd help.

  * utils/hbrun/hbrun.prg
    * Formatting.
2011-02-07 23:58:47 +00:00
Viktor Szakats
ae7292c596 2011-02-08 00:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    + Internal enhancements in output creation.

  * INSTALL
    * Minor.
2011-02-07 23:31:39 +00:00
Viktor Szakats
c8336db727 2011-02-07 22:52 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetioq/netiosrq.prg
    ! Synced one RPC call with recent change in server.
2011-02-07 21:52:59 +00:00
Pritpal Bedi
61d88fdca7 2011-02-07 13:29 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbnetio/utils/hbnetioq/netiosrq.prg
    ! Ebnabled to get information from netiosrv daemon.
      Currently only connections info. Time interva to refresh 
      browser is 10 seconds currently. Still a lot to be 
      implemented based on latest features of netiosrv daemon.
      A work-in-progress.
2011-02-07 21:34:58 +00:00
Viktor Szakats
cc93259265 2011-02-06 20:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    - Deleted filtering on client host name.

  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    ! Fixed RTE when there were no notifications.
2011-02-06 19:23:28 +00:00
Viktor Szakats
4c74c24c52 2011-02-06 14:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
    + Reworked and reenabled host name based filtering.
      NOTE: Host name lookup is not implemented for win platforms
            in hbsocket.
2011-02-06 13:34:25 +00:00
Viktor Szakats
c9fece796d 2011-02-06 13:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    + Resolved remaining TODOs regarding client notifications.
    + Added automatic deletion of (abnormally) disconnected clients
      from notification list.
    * Commented filter code dealing with host names until we find
      out how to get those from IP.

  * contrib/hbhttpd/core.prg
    ! English translation of one word.

  * contrib/hbformat/hbformat.prg
    ! Added missing ASCAN() from list of functions.
2011-02-06 12:58:09 +00:00
Viktor Szakats
40a3e1d9e4 2011-02-06 03:04 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    + Implemented notifications to management clients about 
      server side event, curently connection/disconnections.
      Quite many TODOs are left, and since the console client 
      is ST yet, the display of server events is done after 
      processing a console command.
      F.e. a GUI client can use such information to refresh
      list of clients.

  * contrib/hbnetio/utils/hbnetioq/netiosrq.prg
    * Cleanups.
2011-02-06 02:05:09 +00:00
Viktor Szakats
7fbf89cde2 2011-02-05 23:19 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetioq/netiosrq.prg
    * Roughly reworked to act as management client UI.
      I didn't touch any GUI logic.
    + Accept server port and password in ini file, which
      is now named 'hbnetioq.exe.config'. This can also
      be extended and fine tuned at will.
    ; To test, run it like the console client, f.e.:
         hbnetio -adminpass=toptopsecret
         hbnetioq -pass=toptopsecret
    ; NOTE: Only one RPC call is implemented, pls fill the rest,
            plus some periodic refresh would have to implemented
            for the browse. Pls see
               contrib/hbnetio/utils/hbnetio/netiocon.prg
            for possible RPC commands and returned values.
2011-02-05 22:19:35 +00:00
Viktor Szakats
80ac81c146 2011-02-01 20:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetioq/netiosrq.prg
    ! Fixed casing in #include lines.
      Please remember that case-sensitive file systems exist.
      Patch by Tamas.
2011-02-01 19:24:40 +00:00
Viktor Szakats
0d27bb4634 2011-02-01 14:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    + Added GPL license.

  * contrib/hbnetio/utils/hbnetioq/netiosrq.prg
    + Added GPL license. (once the server code is 
      deleted and only the UI remains, this should 
      be updated)
2011-02-01 13:40:00 +00:00
Viktor Szakats
b8ce859936 2011-02-01 11:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/make.hbs
    ! Fixed to not define _HB_BUILD_ when doing a custom build 
      (explicitly passed .hbp file) in stdalone mode.

  * contrib/hbnetio/utils/hbnetio/netiosrv.prg
    + Enabled keepsort on the saved configuration hash.

  * contrib/hbhpdf/harupdf.c
    - Deleted wrapper to HPDF_PDFA_GENERATEID(), what rather seems 
      an internal function.
    * Tweaked previous fix to HPDF_PDFA_SETPDFACONFORMANCE(), so that 
      now it's included in dynamic builds, just returning dummy result.
      Still a pending TOFIX though, as it's not right that dynamic 
      and static version of the same lib works differently. Any tips 
      which way to choose? It would be great asking libharu developers 
      about whether HPDF_PDFA_SetPDFAConformance() is meant as a 
      public function.
2011-02-01 10:36:36 +00:00
Viktor Szakats
2b321edc14 2011-02-01 01:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    + Added RPC and console command to save filters.
      They will be reloaded automatically when starting 
      up the server daemon.

  * ChangeLog
    ! Fixed previous entry header.
2011-02-01 01:45:47 +00:00
Viktor Szakats
e7ff8f5a0d 2011-02-01 01:56 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
    + Keep order of filter lists.
    
  * utils/hbmk2/hbmk2.prg
    ! Use _hbmkcpp_<cFirstFile>.cpp (instead of _hbmkcpp.cpp) on
      non MS-DOS platforms.
2011-02-01 00:56:49 +00:00
Viktor Szakats
654d35ce81 2011-02-01 00:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
  * contrib/hbnetio/utils/hbnetio/netiocon.prg
    + Added console commands to add/remove filters.
    + Added rpc and console commands to list filters.
2011-01-31 23:33:54 +00:00
Viktor Szakats
396ad654d2 2011-01-31 00:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
    + Added client address filtering engine for both data and
      management interface. It will do quick match against
      IP, then wildcard match against IP, then quick host name match,
      wildcard hostname match. Block filter has priority over
      allow filter. It's possible to control via management RPC,
      console UI not yet extended to use it. A lot of other
      TODO is quickly generated by this feature, f.e. making
      settings persistent, supporting IP subnet masks, etc.
      I didn't test this at all, pls do.

  * src/rtl/strmatch.c
    ! Typo in comment.
2011-01-31 00:00:27 +00:00
Pritpal Bedi
600de4ff05 2011-01-29 20:35 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbnetio/utils/hbnetioq/hbnetioq.hbp
  + contrib/hbnetio/utils/hbnetioq/manageips.ui
  * contrib/hbnetio/utils/hbnetioq/netiosrq.prg
  * contrib/hbnetio/utils/hbnetioq/netiosrq.qrc
  + contrib/hbnetio/utils/hbnetioq/refresh.png
    + Implemented: activate/deactivate banning IPs from connecting 
      to server. This implementation provides for the -ini=cINIFile 
      command line switch. <cINIFile> contains the info about IPs.
      User-interface to manage activations is via toolbar button 
      which allows to <Add><Delete><Save> IPs and also to flag 
      to activate/deactivate IPs on-the-go.

      TODO: take use of console daemon by separating the user inetrface.
            Hopefully by next week.
2011-01-30 22:39:58 +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
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
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
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
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
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
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
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
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
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
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