[Mono-list] Not Implemented timelines, Priorities, etc?

mickeyf mickey at thesweetoasis.com
Thu Aug 9 17:40:45 UTC 2012


This is code from a Windows app which works well, but written by someone no
longer with us and which I'm porting to Ubuntu:


                   byte[] inValue = new byte[] { 1, 0, 0, 0, 48, 117, 0, 0,
1, 0, 0, 0 };
                    byte[] outvalue = new byte[10];
                   
tcpClient.Client.SetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.KeepAlive, 1);
Exception here -->   
tcpClient.Client.IOControl(IOControlCode.KeepAliveValues, inValue,
outvalue);


The fact the MoMA complains is less important than that the code actually
does throw an exception.

As I learn more about this I'm wondering if it is even required. It looks
like much of the KeepAlive is "automatic" (but may wait 2 hours (!) before
the first check). With the offending line commented out, the code runs and
breaking the connection by shutting down one end cleanly is correctly
detected and handled. 

I'm thinking that would this matter if there is some intermediate case in
which the sockets somehow remain open but not sending, or if there is a
crash on one end.



Rodrigo Kumpera wrote
> 
> You might be using an old definition file for MoMa.
> 
> What IOCtrl are you trying to use? Mind that if it doesn't exist on unix,
> emulating their behavior is usually not feasible.
> 
> On Thu, Aug 9, 2012 at 10:14 AM, mickeyf <mickey@> wrote:
> 
>> IOControl  "implements the common subset"
>>
>> In other words, "partly implemented", and I had the luck to stumble over
>> that part that wasn't.
>>
>> My confusion was that the exception message implied "not implemented at
>> all".
>>
>> Thanks.
>>
>>
>>
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/Not-Implemented-timelines-Priorities-etc-tp4650818p4650848.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at .ximian
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at .ximian
> http://lists.ximian.com/mailman/listinfo/mono-list
> 




--
View this message in context: http://mono.1490590.n4.nabble.com/Not-Implemented-timelines-Priorities-etc-tp4650818p4650854.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list