Hi,

[email protected] wrote:
  * harbour/contrib/hbnetio/netiosrv.c
    + added new PRG function:
         NETIO_RPCFUNC( <pConnectionSocket> [, <sFuncSym> ] ) -> NIL
      which allows to set user filter for RPC calls. <sFuncSym> is executed
      on each RPC request instead of requested function and receives as
      first parameter requested function symbol then function parameters.
      A simple wrapper may look like:
            static function rpc_filter( sFunc, ... )
               ? "DO", sFunc:name, "WITH", ...
            return sFunc:exec( ... )

It would be nice if NETIO_PROCEXISTS() is also affected and would return true only if function is available on server side. I don't know what implementation type is better: another filter function,
   static saAllowed := {"STR"=>, "VAL"=>}
   static func rpc_filter_exists(sFunc)
   return sFunc:name $ saAllowed
or additional parameter indicating if execution or validation is called, or some other solution.


Regards,
Mindaugas
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to