#include <rtl.h>
void ppp_connect (
char const* dialnum, /* Pointer to string containing the number to dial. */
char const* user, /* Username for authentication. */
char const* passw ); /* Password for authentication. */
Description
The ppp_connect function starts a dial-up connection to the
remote PPP server by starting the PPP daemon in client mode.
The argument dialnum points to a null terminated ASCII
string containing the phone number of the remote PPP server.
The argument user points to the username, and the argument
passw points to the password. The TcpNet system uses username
and password for remote user authentication using the Password
Authentication Protocol (PAP). Both arguments are null terminated
ASCII strings.
The ppp_connect function is in the RL-TCPnet library. The
prototype is defined in rtl.h.
note
You must call the ppp_connect function when you want to
establish a dial-up connection using PPP.
If you use a direct cable connection, you can set
dialnum to NULL because the Null_Modem device driver ignores
the argument dialnum.
Return Value
The ppp_connect function does not return any value.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.