| Name : perl-MidWay
| |
| Version : 0.2
| Vendor : Terje Eggestad < terje_eggestad_iname_com>
|
| Release : 1
| Date : 2004-07-14 16:33:14
|
| Group : Applications/CPAN
| Source RPM : perl-MidWay-0.2-1.src.rpm
|
| Size : 0.17 MB
| |
| Packager : Arix International < cpan2rpm_arix_com>
| |
| Summary : MidWay - Perl extension for MidWay, a service request broker.
|
Description :
This module provides a Perl interface to the MidWay C api. See the man pages for the C api for the gory details. Note that the C library must be installed on you host. If you don\'t have it, use the Netclient module instead. It is implemented completely in Perl, and don\'t require any compilation. Of course it only support the SRB protocol, and call/forward/reply only. This native module does it all.
The differences in Perl can be summed up as follows:
All char * data, int datalen pairs are replace by a Perl scalar, pretty straight forward since Perl scalars may contain NUL chars. If you want to do the equivalent to NULL for data, pass undef as data argument.
Function pointers are replaced by references to Perl subroutines.
mwcall and mwfetch return a list instead of returning thru their parameters. This make more sense in Perl. Just note that in case of failure they return a list with one element only, the return code. This might change in order to be more in compliance to Perl error handling.
I might change the parameter order in some Perl call, in order to move the more used parameters forward. All parameters defaults to either 0 or \"\", and this may be used as fillers if needed.
Note the the service handler functions are passed a hash. This reflects the reason we use a struct i the native C API. Members will be added without notice.
|