Thank you but your explanation does not explain what is the type (signed 
unsigned) and the size of each header component.
Thus it is impossible to work with that.

Annick

Le 17 oct. 2014 à 19:09, Sven Van Caekenberghe <s...@stfx.eu> a écrit :

> Yes, you have to use the methods in the protocol 'datagrams' of Socket.
> 
> When you receive a datagram, the IP:PORT of the other party is included, see 
> #receiveUDPDataInto:'c comment.
> 
> It is all a bit low level, but it works well.
> 
> On 17 Oct 2014, at 18:15, Annick Fron <l...@afceurope.com> wrote:
> 
>> Thank you, but I am confused.
>> I have checked your NTP code, and it uses 
>> sendUDPData and not sendData. Same for receiveUDPData.
>> Besides how is it possible to know where the message comes from in a 
>> broadcast mode ??
>> Annick
>> Le 17 oct. 2014 à 17:35, Sven Van Caekenberghe <s...@stfx.eu> a écrit :
>> 
>>> UDP is pretty easy, just send and receive byte arrays basically, mostly 
>>> non-blocking.
>>> 
>>> http://forum.world.st/UDP-Listener-example-td4362851.html
>>> http://forum.world.st/SysLogSender-UDP-td4745862.html
>>> 
>>> The API is all in Socket.
>>> 
>>> On 17 Oct 2014, at 17:09, Annick Fron <l...@afceurope.com> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I was not able to find a UDP example in pharo.
>>>> 
>>>> There are only TCP examples.
>>>> 
>>>> Any pointer ?
>>>> 
>>>> Annick
>>>> 
>>> 
>>> 
>> 
> 


Reply via email to