NAME

IPC::Door::Server - door server object for Solaris (>= 2.6)

SYNOPSIS

    use IPC::Door::Server;

    $door = '/path/to/door';

    $dserver = new IPC::Door::Server($door, \&mysub);

DESCRIPTION

IPC::Door::Server is a Perl class for door servers. It creates a door $door and listens to client requests through it.

When a door client sends a request through its door, the IPC::Door::Server passes the data to &mysub, and sends its return value to the client.

SERVER PROCESS

Each IPC::Door::Server object is associated with a server process (&mysub throughout this documentation). &mysub must take exactly one scalar and return exactly one scalar.

Currently, these arguments can't be a reference or any other data structure. See <IPC::Door/"KNOWN ISSUES">.

SPECIAL VARIABLES

When an IPC::Door::Client process makes a call, the IPC::Door::Server process sets 5 special variables as a result of door_cred/doore_ucred (3DOOR) call. These corresponds to self-explanatory credentials of the client process: $IPC::Door::CLIENT_EUID, $IPC::Door::CLIENT_EGID, $IPC::Door::CLIENT_RUID, $IPC::Door::CLIENT_RGID, and $IPC::Door::CLIENT_PID.

(These names may change in the future releases of this module.)

SEE ALSO

IPC::Door

AUTHOR

ASARI Hirotsugu <asarih at cpan dot org>

http://www.asari.net/perl

COPYRIGHT AND LICENSE

Copyright 2003-2005 by ASARI Hirotsugu

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.