[erlang-questions] Return status of gen_udp send

Torben Hoffmann torben.lehoff@REDACTED
Sat Jun 2 09:39:10 CEST 2012


Tim, you are correct about the 'fire and forget', but that is only for 
the part outside your own machine.

The original poster wanted to know if the message really got sent or got 
dropped in his own machine.
Which actually poses a question in my head: what does it matter where 
the message was lost?
The only reason I can think of right now is to control load on your own 
kernel and slow down if you are pushing your machine too hard.
Perhaps the original poster can clarify?

Cheers,
Torben

On 02/06/2012 07:29, Tim McNamara wrote:
> Others can correct me.
>
> AFAIK UDP is 'fire and forget'. You don't get the opportunity to check
> whether the message was received, or even if there was someone there
> to receive it.
>
>
> On 2 June 2012 17:18, Arun Muralidharan<arun11299@REDACTED>  wrote:
>> A Remider. :) (As per Joe's suggestion on unanswered questions)
>> -Arun
>>
>>
>> On Thu, May 31, 2012 at 10:34 PM, Arun Muralidharan<arun11299@REDACTED>
>> wrote:
>>> Hi Folks!
>>> Is there any way to detect if the packet sent by issuing the statement
>>> "gen_udp:send" is really sent or got dropped because of buffer overflow in
>>> the kernel .
>>> I am using UDP socket with one of the option set as active once and both
>>> send and receive buffer set to 2MB.
>>>
>>>
>>> Thanks,
>>> -A
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-- 
http://www.linkedin.com/in/torbenhoffmann




More information about the erlang-questions mailing list