12-16-2008 01:19 PM
My company's application setup prefers the use of UDP, as it's more optimised on our servers.
However, some software versions seem to have problems with it. 4.5 fails with an "invalid digit" exception if the URL includes ";deviceside=true" but gets nowhere if it's missing.
Is there a list of specific software versions where I should avoid using UDP? I can roll-over to TCP pretty easily but I'd prefer not to attempt it in scenarios where it can be expected to fail.
12-18-2008 11:01 AM
The deviceside parameter can be used fort socket and HTTP connections, but should not be used for UDP connections (which are always made directly from the BlackBerry handheld).
Note that support for UDP connections also varies by carrier. Some carries don't support or block these types of connections. In this case the connection can appear to work from the handheld but the data never arrives at the other end.
12-18-2008 11:47 AM
Should I also be able to route UDP traffic via wi-fi, by appending ";interface=wifi"? In 4.5 an exception seems to occur if any routing suffix is added to the URL, something which doesn't happen in other versions.
02-18-2009 04:34 AM - edited 02-18-2009 04:36 AM
I ended up using TCP over wi-fi.
I did however notice in the Development Guide that the / after port details is mandatory when connecting over UDP, so if the following is different to what you have, you could try:
(DatagramConnection) Connector.open( "udp://host:dest_port[;src_port]/;interface=wifi" );
My guess is that until it sees that slash only digits are accepted for the port value(s) and anything else, semi-colon included, will trigger the exception.
Would be interested to know if that works for you.
02-19-2009 07:00 AM
Regarding to Marks Reply in http://supportforums.blackberry.com/rim/board/mess
I run into the same problem after updating my 8100 which no runs the buggy 188.8.131.52.