[hipl-users] Re: script base exchange

  • From: Miika Komu <miika.komu@xxxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Thu, 03 Jul 2008 09:48:41 +0200

Varjonen Samu wrote:

Hi,

have a look at test/pingtest.sh too.

Hi,

I am not completely sure what you meant by "it" but I made an guess :)
In the initialization of the hipd there is a opendht initialization function that tries to resolve an address that can take some time. It does this even when the opendht is set to off. I made a modification to this couple of hours ago and its committed to the userspace branch. This might cause the delay you are experiencing in the first association, while it actually is the initialization of the daemon that takes the time. So there is an fast solution and an proper one. Fast one is to add sleep to the script after starting the daemon and before the loop that tests the connection. Or the proper way in the top-most hipl source folder

"
tla replay
./autogen.sh
./configure
make
sudo make install
"
And your local copy of HIPL should be updated.

Without more detailed information this is the best I can do, hopefully this helps.

Lina wrote:
A small script like that is it enough?

i=1
hipd/hipd -b
sleep 90
while [  $i -le 5 ]
do
echo 'test' | test/conntest-client @IP tcp port
sleep 100
echo $i
hipconf rst all
i='expr $i+1'
done

But it takes too much especially after the first association.
Do any one have any idea plz?
Thanks

 > Date: Wed, 2 Jul 2008 12:54:17 +0300
 > From: samu.varjonen@xxxxxxxxxxx
 > To: hipl-users@xxxxxxxxxxxxx
 > Subject: [hipl-users] Re: script base exchange
 >
 > Lina wrote:
 > > Hello,
 > >
> > I am trying to make a N consecutive HIP associations, so I am using a
 > > While in a script, and use from the initiator side,
 > >
 > > ...
 > >
 > > test/conntest-client @IP tcp port
 > >
 > > ...
 > >
> > The problem is that I don't want to have the command each time , type
 > > some text then press enter. Is there any solution? Establishing base
 > > exchange without typing this text each time, if I have 100 times, I
 > > won't type 100 times a text!
 >
 > Try the following
 >
 > echo 'test' | test/conntest-client @IP tcp port
 >
 > this prints test and gives it to conntest-client as input and
 > conntest-client runs without having to write the input every time :)
 >
 > >
 > > Thanks,
 > >
> > ------------------------------------------------------------------------ > > Tous vos amis discutent sur Messenger, et vous ? Téléchargez Messenger,
 > > c'est gratuit ! <http://www.windowslive.fr/messenger/>
 >
 >

------------------------------------------------------------------------
Discutez sur Messenger où que vous soyez ! Mettez Messenger sur votre mobile ! <http://www.messengersurvotremobile.com/>




Other related posts: