I will try to explain it better. :)

I have a embebbed microcontroller device working fine with synaser.

the device use UDP to send and receive data

DEVICE A use UDP port 4000 to GET DATA
DEVICE A use UDP port 4001 to SEND DATA

At PC, my software use

PC use UDP port 4001 to GET DATA
PC use UDP port 4000 to SEND DATA

My software at pc, actual setup is:

to TALK TO DEVICE A

  FUDPSockettoSend := TUDPBlockSocket.Create();
  FUDPSockettoSend.Connect('192.168.0.200','4000');

to LISTEN FROM DEVICE A

  FUDPSockettoListen := TUDPBlockSocket.Create();
  FUDPSockettoListen.Bind('0.0.0.0','4001');

Well. that work in most of cases.

Then in one customer, having a server with a ethernet board with 3 aliases,
im getting 3 packages for every package i must receive. I get 3 times the
info (when must be one package only)

So, i think, why dont change to make possible to setup the listen ip only?
and change my code to:

to TALK TO DEVICE A

  FUDPSockettoSend := TUDPBlockSocket.Create();
  FUDPSockettoSend.Connect('192.168.0.200','4000');

to LISTEN FROM DEVICE A

  FUDPSockettoListen := TUDPBlockSocket.Create();
  FUDPSockettoListen.Bind('192.168.0.45','4001');

192.168.0.45 is one of the IPS on my PC.

The result is, i dont get ANYMORE packages.

I hope im clear now. Thanks lucas for your help.

(BTW, it happens on windows an linux, tested)

2010/5/10 German Gentile <german.gent...@petrobox.net>

> Dont work as expected. Dont get any package.
>
> 2010/5/10 Lukas Gebauer <gebyl...@mlp.cz>
>
> > And, if you try yo point to ONLY ONE ip, like this:
>> >   sock.bind('192.168.1.45','port');
>> >  You get a eror 0 when try to do...
>>
>> And what is bad?
>>
>>
>> --
>> Lukas Gebauer.
>>
>> http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
>> http://geoget.ararat.cz/ - Geocaching solution
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> synalist-public mailing list
>> synalist-public@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/synalist-public
>>
>
>
>
> --
> German Pablo Gentile
> CTO - Dpto. de Desarrollo y Tecnología.
> PetroBox Internacional
> Fabricantes de la línea de productos
> PetroBox y PetroTruck
> http://www.petrobox.net
> german.gent...@petrobox.net
> (Oficinas Colombia)
> (57)       5-4222465
> (57)       3017258189
> (Bolivia)
> (591)     75361612
> (HQ Argentina)
> (5411)  4524-0297
> (54911) 3838-4749
> (54911) 5701-0304
> MSN        gentileger...@hotmail.com
> Google Talk    germanpablogent...@gmail.com
> skype(VoIP)    germanpablogentile
>



-- 
German Pablo Gentile
CTO - Dpto. de Desarrollo y Tecnología.
PetroBox Internacional
Fabricantes de la línea de productos
PetroBox y PetroTruck
http://www.petrobox.net
german.gent...@petrobox.net
(Oficinas Colombia)
(57)       5-4222465
(57)       3017258189
(Bolivia)
(591)     75361612
(HQ Argentina)
(5411)  4524-0297
(54911) 3838-4749
(54911) 5701-0304
MSN        gentileger...@hotmail.com
Google Talk    germanpablogent...@gmail.com
skype(VoIP)    germanpablogentile
------------------------------------------------------------------------------

_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to