:: Re: [DNG] netman GIT project
Pàgina inicial
Delete this message
Reply to this message
Autor: Edward Bartolo
Data:  
A: Steve Litt
CC: dng
Assumpte: Re: [DNG] netman GIT project
Also successfully detected multiple simultaneously active connections
from Lazarus code. The next step will be to implement network
connection identification in C code.

After that, I will do my next commit to git.devuan.org


Automatic searching for Wifi hotspots probably will need a separate
thread to simplify the code, although I am confident this can be
achieved from the main thread without crippling it. However, without a
separate thread, the code will be far more complex and difficult to
read.

I am opting for a separate thread.

Edward

On 27/08/2015, Edward Bartolo <edbarx@???> wrote:
> It worked.
>
> Now, I must find a way to determine whether we can communicate with a
> router. Found that also.
>
> "ip a | grep wlan0"
> With wifi switched on and connection active: state UP
>
> With wifi turned off and connection still active: state DOWN
>
> That is what I need.
>
>
> Edward
>
> On 27/08/2015, Steve Litt <slitt@???> wrote:
>> On Thu, 27 Aug 2015 15:40:49 +0100
>> Edward Bartolo <edbarx@???> wrote:
>>
>>> I added another function to core_functions.c. It attempts to connect
>>> to eth0 but for some weird reason, probably a bug not from our part,
>>> it is failing.
>>>
>>> The function is: int connectWired(const char ethx)
>>>
>>> And the error is: (passed command to execl is "ifup eth0")
>>> "This command should be called as ifup, ifdown, or ifquery"
>>>
>>> Any pointers as to what is the cause are appreciated.
>>
>> You might get lucky by sending execl the full path to ifup, perhaps
>> it's /sbin/ifup and execl didn't send the environment.
>>
>>
>>
>> SteveT
>>
>> Steve Litt
>> August 2015 featured book: Troubleshooting: Just the Facts
>> http://www.troubleshooters.com/tjust
>> _______________________________________________
>> Dng mailing list
>> Dng@???
>> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>>
>