473,491 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Socket Option in Windows Mobile Application

4 New Member
Hi
I am trying to set SocketOption in Windows Mobile Application, but its throwing Exception.
Please let me know how to set Receive Time out for socket in Windows Mobile VS2005 application.

s=new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);

s.Bind(new IPEndPoint(IPAddr, port));

s.Listen(1);

s.SetSocketOption(SocketOptionLevel.Socket,SocketO ptionName.ReceiveTimeout,40000);


Socket actualReader = s.Accept();
Sep 23 '06 #1
0 1600

Sign in to post your reply or Sign up for a free account.

Similar topics

5
3668
by: John Sheppard | last post by:
Hi all, I am not sure that I am posting this in the right group but here it goes anyway. I am new to socket programming and I have been searching on the internet to the questions I am about to pose...
5
15086
by: Rotzooi | last post by:
Hi, In the past I created a VB6 application that was capable of accepting multiple client connections for status logging over the internet using simple non-Windows clients (GSM/GPRS). There is...
8
5652
by: Roodie | last post by:
Hello, I have a quite specific problem, and after half a day spent with Google, still no solid answer. The task: I have to write a C# class Library ( DLL ) to handle TCP socket...
11
6819
by: Tor Erik | last post by:
Hi, The reason is that my application does about 16 connects and data transfers per second, to the same 16 remote hosts. After approx 200 secs there are 4000 sockets waiting to be garbage...
1
2143
by: cyberco | last post by:
Using: .Net Compact Framework 2, Windows Mobile 5 (Pocket PC) I'm trying to upload a large binary file in chuncks over a socket (as a multipart mime message). This is how I'm trying to accomplish...
1
2356
by: Sharky Ward | last post by:
We have a C# windows mobile form application designed for PockedtPC 2003 developed in VS2003.NET with .NET 1.0/1.1. Some of the mobile devices have been replaced with Windows Mobile 5.0. As a...
2
2166
by: lokeshRsharma | last post by:
Hi, i am using Win32 sockets in Windows mobile 5.0 smartphone. My data size is around 10k. I perform following actions to download data from server : 1. Enable ConnectionManager when...
15
1796
by: udayahirwal2 | last post by:
Can i create 4 sockets on same ip address with different portnumbers. I am working on windows mobile.
4
2817
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post by:
I am creating an application for windows mobile using Visual C# windows. I am using visual studio 2008 and I have windows Microsoft Vista on my computer. I also downloaded the professional and...
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7190
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4881
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.