Re: Distinguishing between ppp and ethernet
Re: Distinguishing between ppp and ethernet
- Subject: Re: Distinguishing between ppp and ethernet
- From: Andrew <email@hidden>
- Date: Wed, 29 May 2002 10:05:24 +1200
Hi Quinn,
Does anyone have any suggestions?
Can you explain why you need to do this? Sometimes it's easier to come
up with a high-level solution than to answer a direct low-level question.
Im using REALbasic to create an application that downloads various files
using the http protocol, unfortunately REALbasic has a problem on both
windows and osx where if a connection using ppp is unexpectedly
interrupted, either by the remote server or by pulling the plug, the
realbasic sockets begin returning a stupidly high number as their error
code, and continue to do this even once the user is
reconnected....although on osx ignoring the error will allow the new
connection to be used, so long as there is one.
So what I need to do is work around it, I cannot assume that this error
will only be returned in that situation (although that may be the case) so
I want to nail down some details about what type of interface is being
used, whether or not there is actually a valid connection, and react to
the stupidly high error code appropriately. (any wild guesses about what
they are doing wrong that may be causing this?)
Also, there is currently no way of determining whether a connection will
cause a dialup using rb sockets...they have a pppstatus but obviously its
value is only relevant if the user is actually using a ppp
interface....and there is no way of determining this without initiating a
connection and seeing whether the pppstatus changes.
So the second problem I can solve by using the willDial method in the
NetworkSetupHelpers, and I can nail down the current circumstances of the
first bug by using various parts of that code...but I need to be able to
do the same thing for os x and windows....hence my post here about morescf
for carbon.
Any help would be very much appreciated :)
Yours cheerfully,
Andrew Bush
The word for a society where everyone is pulling together is 'Tyranny', in
a free country everyone tends to pull in different directions.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.