TCP Chanel in .NET Compact Framework

G

Guest

I am developing an application for a PDA using Pocket PC emulator -
My application first connects to a server (a desk top application) and then receives and send messages. Now sometimes when the messages are sent to the server from the PDA application the server can only read it partially in one try and then the remaining part in the next try - and then the server cannot process (just discards it) because of some formatting issues (it expects a certain format of the message) - I am not allowed to change the server - all i have control of is changing the PDA client. Now i checked the default size of a socket send buffer on the .net compact framework is about 8K bytes - my messages are not that long - then why am I having this problem - Is it anything to do with the way the TCP channel is set up - I wish somebody could help!!
 
P

Pete Vickers [eMVP]

Hi,
in TCP/IP there is never any guarantee on the size of the packets, you just
need to read until you have read all the expected length.

You can try adjusting the TcpWindowSize in
HKEY_LOCAL_MACHINE\Comm\Tcpip\Parms\ to 65535 to see is that makes a
difference. There is an articel on TCP/IP settings on MSDN at
http://msdn.microsoft.com/library/d.../wcetcpip/html/cerefTCPIPRegistrySettings.asp

HTH

Pete


--
Pete Vickers
Microsoft Windows Embedded MVP
HP Business Partner
http://www.gui-innovations.com

Rinu Jain said:
I am developing an application for a PDA using Pocket PC emulator -
My application first connects to a server (a desk top application) and
then receives and send messages. Now sometimes when the messages are sent
to the server from the PDA application the server can only read it partially
in one try and then the remaining part in the next try - and then the server
cannot process (just discards it) because of some formatting issues (it
expects a certain format of the message) - I am not allowed to change the
server - all i have control of is changing the PDA client. Now i checked the
default size of a socket send buffer on the .net compact framework is about
8K bytes - my messages are not that long - then why am I having this
problem - Is it anything to do with the way the TCP channel is set up - I
wish somebody could help!!
 
G

Guest

My application runs on Pocket PC (not windows CE) and i don't know how to set the Tcp Window size there.
So far i have only been experimenting with the emulator - do you know how to set in for the emulator??
Any help will be appreciated!
 
R

Richard L Rosenheim

I'm not positive, but I believe it's a registry setting.

Richard Rosenheim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top