FROM : Youko Nagao
DATE : Sun Nov 10 23:55:01 2002
Hi,
I am creating a program controlling PPP connection.
It uses "PPPLib". I got "PPPLib" from Cocoa Dev Central.
Now, I have a following problem.
Immediately after system restart, connectPPP() is work fine.
But when I disconnect PPP and change location to call connectPPP() again,
PPPConnect(ref, 0) returns error "ENODEV".
Why? Did I forget some process?
- (int)connectPPP
{
int ref;
int result;
result = PPPInit(&ref);
if(result == noErr){
result = PPPConnect(ref, 0);
}
if(result == noErr){
result = PPPDispose(ref);
}
return result;
}
- (int)disconnectPPP
{
int ref;
int result;
result = PPPInit(&ref);
if(result == noErr){
result = PPPDisconnect(ref, 0);
}
if(result == noErr){
result = PPPDispose(ref);
}
return result;
}
--
Youko Nagao <<email_removed>>
DATE : Sun Nov 10 23:55:01 2002
Hi,
I am creating a program controlling PPP connection.
It uses "PPPLib". I got "PPPLib" from Cocoa Dev Central.
Now, I have a following problem.
Immediately after system restart, connectPPP() is work fine.
But when I disconnect PPP and change location to call connectPPP() again,
PPPConnect(ref, 0) returns error "ENODEV".
Why? Did I forget some process?
- (int)connectPPP
{
int ref;
int result;
result = PPPInit(&ref);
if(result == noErr){
result = PPPConnect(ref, 0);
}
if(result == noErr){
result = PPPDispose(ref);
}
return result;
}
- (int)disconnectPPP
{
int ref;
int result;
result = PPPInit(&ref);
if(result == noErr){
result = PPPDisconnect(ref, 0);
}
if(result == noErr){
result = PPPDispose(ref);
}
return result;
}
--
Youko Nagao <<email_removed>>
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

