NAME
Net::FSP::Util - Utility functions for Net::FSP
VERSION
This documentation refers to Net::FSP version 0.13
DESCRIPTION
By default Net::FSP ignores the environment. To improve compatibility with other FSP implementations these utility functions are provided.
SUBROUTINES
- get_envs()
-
Get options for Net::FSP::new from environmental variables.
- get_host()
-
Get the remote host from the appropriate environmental variable.
- get_local_dir()
-
Get the local directory from the appropriate environmental variable, or else it returns "./";
CONFIGURATION AND ENVIRONMENT
The following environmental variables are used for access FSP servers:
- FSP_HOST
-
The name or IP address of the machine with the FSP server.
- FSP_PORT
-
The port number of the UDP socket used by the FSP server.
- FSP_LOCALIP
-
Local Address of UDP socket. This IP address must be one of your local IP addresses. This variable is mainly used for multihomed hosts.
- FSP_LOCALPORT
-
The port number of the UDP socket. You may pick any number not currently used for other purposes.
- FSP_PASSWORD
-
Access password for FSP server. Directories on FSP server can be password protected. FSP server can change your access level if you have provided a correct password. There are 2 access levels: public and owner.
- FSP_BUF_SIZE
-
Preferred size of server reply. Default is 1024 which is supported by all servers. Some servers can accept larger packets and you will get some extra speed with them. You can lower that value if you want to get smaller packets from server.
- FSP_DIR
-
The current working directory of the client in the FSP server.
- FSP_DELAY
-
Minimum wait time before resending packet in milliseconds. This should be set close to expected round trip time.
- FSP_MAXDELAY
-
Maximum wait time before resending packet in milliseconds.
- FSP_LOCAL_DIR
-
Where to look for local files.
AUTHOR
Leon Timmermans, fawaka@gmail.com
LICENSE AND COPYRIGHT
Copyright (c) 2005, 2008 Leon Timmermans. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.