The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

UDPServersAndClients - A Module that is four server/client rograms.

SYNOPSIS

  use UDPServersAndClients;

DESCRIPTION

This module exports a variable, $ip that you should set as the ip of the computer where you are running the server before running any of the below client functions to connect to that computer.

This module exports four subroutines which do not accept any values or return any:

1. server_onlinecheck (); -- this subroutine runs a server that will allow anyone running the client function, client_onlinecheck (); to check if the server is online. This can be useful if you have a server you want to check using UDP.

2. server_filestore (); -- this subroutine runs a server that will allow anyone running the client function, client_filestore(); to transfer files to and get files from the server's current directory (the directory of your script that accesses server_filestore();).

3. client_onlinecheck (); -- this subroutine has already been explained. Just run it.

4. client_filestore (); -- Ditto.

Note: the port used for data transfer is 1234 so it must be available for this module to work.

Note: this module requires the module IO::Socket::INET. =head1 SEE ALSO

IO::Socket and IO::Socket::INET

AUTHOR

Robin Bank, <webmaster@infusedlight.net<gt>

COPYRIGHT AND LICENSE

Copyright (C) 2006 by Robin Bank

LICENSE: I don't care at all.