[Mono-list] More info about Asyn Socket errors...

Giuseppe Greco gius.greco@bluewin.ch
Mon, 7 Jul 2003 14:52:07 +0200


>-- Original Message --
>Subject: Re: [Mono-list] More info about Asyn Socket errors...
>From: Gonzalo Paniagua Javier <gonzalo@ximian.com>
>To: mono-list@lists.ximian.com
>Date: 07 Jul 2003 14:38:53 +0200
>
>
>El lun, 07-07-2003 a las 14:29, Giuseppe Greco escribió:
>> Hi all,
>> 
>> Yesterday I reported that I'm not able to
>> send neither multicast nor broadcast datagram...
>> 
>> Here are the error messages:
>> 
>> Unhandled Exception: System.Net.Sockets.SocketException: Some sort of
w32
>> error occured: 10040
>
>That's a "Message too long" error code (i've just added the description
>to CVS).

Yes, for test purposes, I'm trying to send a datagram that is larger
than 8K, but I've also set the right buffer size by calling

socket.SetSocketOption(
  SocketOptionLevel.Socket,
  SocketOptionName.SendBuffer,
  65535);

Note that even if I broadcast or multicast very small datagrams
(just few bytes), I'm not able to get them when calling the
BeginReceiveFrom() and EndReceiveFrom() methods pair - only
unicast UDP datagrams are actually received.

Gius_.

 
>
>-Gonzalo
>
>
>_______________________________________________
>Mono-list maillist  -  Mono-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list