Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

RPC::Async::URL
Utility functions to handle URLs

RPC::Async::URL - Utility functions to handle URLs


NAME

RPC::Async::URL - Utility functions to handle URLs


SYNOPSIS


    use RPC::Async::URL;

    my $socket1 = url_connect("tcp://1.2.3.4:5678");

    my $socket2 = url_connect("exec://dir/file.pl --my-option");


METHODS

url_connect($url)

Turns an URL into a socket. Currently supported schemes are tcp://HOST:PORT and exec://SHELL_COMMAND. A program executed with exec will have the option --connected_fd=NUMBER on its command line, where NUMBER is the file descriptor of a stream socket.

drop_privileges()

Drops privileges to the user defined in $ENV{'RPC_ASYNC_URL_USER'} or the caller if called with sudo.


AUTHOR

Jonas Jensen <jonas@infopro.dk>, Troels Liebe Bentsen <troels@infopro.dk>


COPYRIGHT

Copyright(C) 2005-2007 Troels Liebe Bentsen

Copyright(C) 2005-2007 Jonas Jensen

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

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy