RAS problem

L

Linus Rörstad

Hello!

I have a Symbol PPC 2002 device on which I'm developing a application that
makes a Ras connection. This sometimes work just great and sometimes not so
great. The problem is when ras makes the connection it sometimes can not
make the connection all the way and fails. After it fails I try to make it
one more time and it gives me back Port not available. Does ras try to make
the connection one more time by itself?

Linus
 
G

Guest

Hi

ras dont try to make the connection one more time by itself.
Do you close the connection, with RasHangUp, when it fails?

With PPC I recommend to you to use ConnectionManager. Opennetcf has
developed a free wrapper.

Regards

ACP
 
L

Linus Rörstad

No do I have to? I thought if it fails it I would not need to call
rashangup. Do I need to wait for some status until I can try again?

I think Ras is a better choise since the user are not supposed to interfere
with the connection. With Connection Manager you can't really hide the the
connection info (yes you can hide the connect to window but not the window
that appears when the connection fails, right?).

Thanks
Linus
 
G

Guest

Hi,

try close the connection and check it

while
(RasGetConnectStatus(m_ConnectionHandle,&rasConnStatus)!=ERROR_INVALID_HANDLE)
{
Sleep(0);
}

What happen if you wait a few seconds before try to re-connect??


You are right, with PPC2002 there's no way to stop the connection dropped
notification.


Regards

ACP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top