UDPServersAndClients - A Module that is four server/client rograms.
use UDPServersAndClients;
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
Robin Bank, <webmaster@infusedlight.net<gt>
Copyright (C) 2006 by Robin Bank
LICENSE: I don't care at all.
To install UDPServersAndClients, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UDPServersAndClients
CPAN shell
perl -MCPAN -e shell install UDPServersAndClients
For more information on module installation, please visit the detailed CPAN module installation guide.