#include <remconn.h>
Inheritance diagram for PRemoteConnection:
Error/Status functions | |
enum | Status { Idle, Connected, InProgress, LineBusy, NoDialTone, NoAnswer, PortInUse, NoNameOrNumber, AccessDenied, HardwareFailure, GeneralFailure, ConnectionLost, NotInstalled, NumStatuses } |
Status codes for remote connection. More... | |
Status | GetStatus () const |
DWORD | GetErrorCode () const |
Information functions | |
const PString & | GetName () const |
PString | GetAddress () |
PStringArray | GetAvailableNames () |
Configuration functions | |
Status | GetConfiguration (Configuration &config) |
Status | SetConfiguration (const Configuration &config, BOOL create=FALSE) |
Status | GetConfiguration (const PString &name, Configuration &config) |
Status | SetConfiguration (const PString &name, const Configuration &config, BOOL create=FALSE) |
Status | RemoveConfiguration (const PString &name) |
Public Types | |
Public Member Functions | |
Construction | |
PRemoteConnection () | |
Create a new remote connection. | |
PRemoteConnection (const PString &name) | |
~PRemoteConnection () | |
Disconnect remote connection. | |
Overrides from class PObject | |
virtual Comparison | Compare (const PObject &obj) const |
virtual PINDEX | HashFunction () const |
Dial/Hangup functions | |
BOOL | Open (BOOL existing=FALSE) |
BOOL | Open (const PString &name, BOOL existing=FALSE) |
BOOL | Open (const PString &name, const PString &username, const PString &password, BOOL existing=FALSE) |
void | Close () |
Protected Attributes | |
PString | remoteName |
PString | userName |
PString | password |
DWORD | osError |
PString | pppDeviceName |
PPipeChannel * | pipeChannel |
BOOL | wasConnected |
Status | status |
PString | deviceStr |
|
|
Create a new remote connection.
|
|
Create a new remote connection. This will initiate the connection using the specified settings.
|
|
Disconnect remote connection.
|
|
Close the remote connection. This will hang up/dosconnect the connection, net access will no longer be available to this site. |
|
Compare two connections.
Reimplemented from PObject. |
|
Get the IP address in dotted decimal form for the RAS connection.
|
|
Get an array of names for all of the available remote connections on this system.
|
|
Get the configuration of the specified remote access connection.
|
|
Get the configuration of the specified remote access connection.
|
|
Get the error code for the last operation.
|
|
Get the name of the RAS connection.
|
|
Get the current status of the RAS connection.
|
|
Get has value for the connection
Reimplemented from PObject. |
|
Open the remote connection.
|
|
Open the remote connection.
|
|
Open the remote connection.
|
|
Remove the specified remote access connection.
|
|
Set the configuration of the specified remote access connection.
|
|
Set the configuration of the specified remote access connection.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|