It's apparent from the subject, that Mark is talking about UDP datagrams. <div><br></div><div>I agree with Trevor's suggestion. Check out <a href="http://www.erlang.org/doc/man/inet.html#setopts-2">http://www.erlang.org/doc/man/inet.html#setopts-2 </a></div>
<div><br></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 16px; "><dt><span class="code" style="font-family: courier; font-weight: normal; ">{sndbuf, Integer}</span></dt><dd>Gives the size of the send buffer to use for the socket.</dd>
</span><br><div class="gmail_quote">So: <span class="Apple-style-span" style="border-collapse: collapse; ">gen_udp:open( Port, [binary, {sndbuf, 700}] ).</span></div><div class="gmail_quote"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></div><div class="gmail_quote">On Tue, Oct 28, 2008 at 7:04 PM, Mark Geib <span dir="ltr"><<a href="mailto:mark.geib@echostar.com">mark.geib@echostar.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a case where I MUST send datagrams that are smaller than a<br>
network frame. The device I am sending to will not except larger datagrams.<br>
<br>
I am sending message that are less than 700 bytes in length, but on the<br>
network using a sniffer I periodically see datagrams from the<br>
application that are 7000 bytes or so in size. The data is correct, the<br>
end device will not accept.<br>
<br>
I am sending these datagrams about every 20 miliseconds.<br>
<br>
Is there an option I am missing to force every gen_dup:send() to cause<br>
the datagram to be sent.?? I am running on linux 2.6.27 kernel.<br>
<br>
--<br>
Principal Engineer<br>
Cheyenne Software Engineering<br>
<a href="mailto:mark.geib@echostar.com">mark.geib@echostar.com</a> / 35-215<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>