Problem in sending data through Socket in Pocket PC
From: Rahul Sur (RahulSur_at_discussions.microsoft.com)
Date: 10/22/04
- Next message: Dan Diephouse: "Dynamic Forms"
- Previous message: Alex Feinman [MVP]: "Re: Control hiding question"
- Next in thread: Paul G. Tobey [eMVP]: "Re: Problem in sending data through Socket in Pocket PC"
- Reply: Paul G. Tobey [eMVP]: "Re: Problem in sending data through Socket in Pocket PC"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Dan Diephouse: "Dynamic Forms"
- Previous message: Alex Feinman [MVP]: "Re: Control hiding question"
- Next in thread: Paul G. Tobey [eMVP]: "Re: Problem in sending data through Socket in Pocket PC"
- Reply: Paul G. Tobey [eMVP]: "Re: Problem in sending data through Socket in Pocket PC"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|