1

Closed

SocketFlags.Partial causes exception on .Net Compact Framework

description

Hi,
working on porting AMQP.Net Lite transport layer on .Net Compact Framework I get an issue related to SocketFlags.Partial flag used in Receive() method for all ITransport implementations.

AFAIK, the partial is related to message oriented socket to read a part of message sent by sender.
In our case, AMQP library uses TCP connection (stream oriented) and not UDP (message oriented) so this flag isn't useful.

However, I don't know why on full .Net Framework it works and on .Net Compact Framework I receive an exception on ReceiveNoCheck() (inside Receive).

Changing from "partial" to "none", now the receive operation works fine.

Why have you used "partial" and not simple "none" (like send operation) ? Is there any specific reason ?

Paolo.
Closed Sep 1, 2015 at 1:14 AM by xinchen

comments

xinchen wrote Jul 9, 2014 at 3:08 PM

I have changed it to None. Don't remember why Partial was used.

Thanks.

ppatierno wrote Jul 9, 2014 at 3:51 PM

Ok.
Great !

Thanks.