RA-Status work-around work-around.
RA-Status work-around work-around.
- Subject: RA-Status work-around work-around.
- From: Emmanuel <email@hidden>
- Date: Sat, 7 Apr 2001 23:47:54 +0200
I may have a proposition to work-around the "0.0.0.0" bug of the
work-around to the "RA Status" bug.
That would be to use a special "RAConnect()" which would attempt to connect
to a (fake) URL, thus giving an IP address to the Mac as soon as it is
connected.
My solution is, thus, two handlers:
"RAConnect()", which connects to Internet (using the current RA configuration)
"RAStatus()", which returns "idle" or "connected" according to the IP Address.
Just to be clear: if you connect manually, "RAStatus()" may return "idle"
while you are connected. You must use "RAConnect()" to be sure.
(more precisely, RAStatus() returns {state:"idle"} or {state:"connected"}
for compatibility.)
Anyone interested in testing my proposition can turn the following hexa
into a string (a menu of Smile does that for you).
6F6E204170704E616D652874686543726561746F72290D097472790D090974656C6C206170706C69
636174696F6E202246696E6465722220746F20736574207468654E616D6520746F206E616D65206F
662066697273742070726F636573732077686F73652063726561746F722074797065206973207468
6543726561746F720D09096966207468654E616D65206973207B7D207468656E2031202F20300D09
0972657475726E207468654E616D650D096F6E206572726F720D090974656C6C206170706C696361
74696F6E202246696E6465722220746F206F70656E206170706C69636174696F6E2066696C652069
642074686543726561746F7220776974682070726F70657274696573207B76697369626C653A6661
6C73657D0D090974656C6C206170706C69636174696F6E202246696E6465722220746F2072657475
726E206E616D65206F662066697273742070726F636573732077686F73652063726561746F722074
7970652069732074686543726561746F720D09656E64207472790D656E64204170704E616D650D0D
746F205241436F6E6E65637428290D097365742074686546616B655061746820746F202870617468
20746F2073746172747570206469736B206173207465787429202620226466696D61706178787865
5F7270220D097365742074686546616B6555524C20746F2022687474703A2F2F6466696D61706178
7878655F7270220D097472790D0909736574207468654E535320746F204170704E616D6528227561
736322290D090969676E6F72696E67206170706C69636174696F6E20726573706F6E7365730D0909
0974656C6C206170706C69636174696F6E207468654E535320746F20C76576656E74206165767464
776E6CC82074686546616B6555524C20676976656E20C7636C6173732066647374C83A66696C6520
74686546616B65506174682C20C7636C6173732072706C63C83AC7636F6E7374616E74206572706C
79657320C80D09090961637469766174650D0909656E642069676E6F72696E670D09656E64207472
790D656E64205241436F6E6E6563740D0D6F6E20524153746174757328290D0974656C6C20617070
6C69636174696F6E204170704E616D6528226E74657822290D0909C76576656E74206F7461616F74
6179C80D09097365742074686541646420746F202867657420C7636C617373206F746761C8206F66
202867657420666972737420C7636C617373206F74646FC82077686F73652069747320C7636C6173
73206F746168C8206973207472756529290D0909C76576656E74206F7461616F746178C80D09656E
642074656C6C0D096966207468654164642069732022302E302E302E3022207468656E2072657475
726E207B73746174653A2269646C65227D0D0972657475726E207B73746174653A22636F6E6E6563
746564227D0D656E642052415374617475730D
Emmanuel