| Mac-Comm-OT_PPP documentation | view source | Contained in the Mac-Comm-OT_PPP distribution. |
Mac::Comm::OT_PPP - Interface to Open Transport PPP
use Mac::Comm::OT_PPP; $ppp = new Mac::Comm::OT_PPP;
This module allows you to do basic operations with OT/PPP, the PPP connection software from Apple Computer designed for use with their Open Transport networking architecture. For more information on Open Transport or OT/PPP, see the Open Transport web site.
$ppp->PPPconnect(USER,PASS,ADRS);
Connect to phone number ADRS as user USER with password PASS.
$ppp->PPPdisconnect();
Disconnect.
$hash = $ppp->PPPstatus();
foreach $key (keys %{$hash}) {
print "$key: $$hash{$key}\n";
}
Return status:
State of connection
Seconds connected
Seconds remaining
User name
Server name
Most recent message for connection
Baud rate of connection
Bytes in/received
Bytes out/sent
Connection type (?)
$ppp->PPPsavelog(FILE);
Save log to file of filepath FILE. Operation can take a minute or two if the log is big, and might freeze up your computer while working. Be patient.
General cleanup.
Took some code and threw it in a module.
Took some code and threw it in a module.
http://tuvix.apple.com/dev/opentransport
Chris Nandor <pudge@pobox.com> http://pudge.net/
Copyright (c) 1998 Chris Nandor. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Please see the Perl Artistic License.
Version 1.20 (03 January 1998)
| Mac-Comm-OT_PPP documentation | view source | Contained in the Mac-Comm-OT_PPP distribution. |