In my experience, you can detect if there is a logical connection, but not if there is a physical connection (or do I have it backwards?). An attempt to detect a physical connection when there isn't one (but there is a logical connection) causes the system to try and make the physical connection, which is probably not what you want.
Mark Peters "Lucas" <[EMAIL PROTECTED]> wrote in message news:72461@palm-dev-forum... > > Hello, > > I need to pick the status of connection in end of my application.... Look > the middle of my code below: > > UInt16 AppNetRefnum; > err = SysLibFind("Net.lib", &AppNetRefnum); > if(err) return err; > err = NetLibOpen(AppNetRefnum, &ifErrs); > if (((err==0)&&((ifErrs==0)||(ifErrs==netErrAlreadyOpen))){ > workOnline=true; > } > else workOnline=false; > > And in the AppStop I want to confirm if the connection is ok or not!!! > > But if anything happen with connection in the application I will not know if > is connected or not! > If the connection down in application (in use)?? My application will return > for me that still connected... > > Anybody can help me???? > > Thanks, > > Lucas > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
