Problem in sending data through Socket in Pocket PC

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Rahul Sur (RahulSur_at_discussions.microsoft.com)
Date: 10/22/04


Date: Fri, 22 Oct 2004 09:49:08 -0700

Hi,

I've an application that is using socket connection over TCP/IP for sending
data from Pocket PC to a server. Well whenever the data size is on or below
58-59 kb all the data is send succesfully from Pocket PC to server. But when
the data is around 70-80 KB , it seems that the client application has send
the data from its end but the data never reaches the server. I'm using the
following lines to send data:

private Socket client;
byte[] data;
client = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
 ProtocolType.Tcp );
IPEndPoint endPt=new IPEndPoint(IPAddress.Parse(serverIP),portNo);
 client.Connect(endPt);
LingerOption lingerOption = new LingerOption (true, 1);
client.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.Linger,
lingerOption);

client.Send(data);

Even I'm not receiving any exception due to socket connection failure, etc;

Any tip/ suggestion regarding the solution would be very helpful.

Thanks



Relevant Pages

  • Re: TCP receive too many small packets
    ... I have a client / server application that communicates with each other ... thru a socket connection. ... Is something wrong with sending small TCP packets? ...
    (microsoft.public.win32.programmer.networks)
  • Re: Problem with XML-RPC, possibly with SOAP too
    ... >> communication protocol amoing client apps and server. ... >> The third problem was since a new connection is needed on each call, ... >> second), no more socket connection can be made, and communication just ...
    (comp.lang.java)
  • Re: Problem with XML-RPC, possibly with SOAP too
    ... >> communication protocol amoing client apps and server. ... >> The third problem was since a new connection is needed on each call, ... >> second), no more socket connection can be made, and communication just ...
    (comp.lang.java.programmer)
  • Maintaining Object state in XML WS problem.
    ... Make a socket connection to Server - myObj.open ... I have tried to do Application; to presiste myObj across ... the WebServices after i called the openConnectionWSwebmethod. ...
    (microsoft.public.dotnet.framework.webservices)