473,508 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# App: Socket programming

1 New Member
Hi
i am using C#.net (Visual Studio2005)
when ever i use this code, my program runs well

Expand|Select|Wrap|Line Numbers
  1. Socket listenSocket = new Socket(AddressFamily.InterNetwork,
  2.                                      SocketType.Stream,
  3.                                      ProtocolType.IP );
but if i use

Expand|Select|Wrap|Line Numbers
  1. Socket listenSocket = new Socket(AddressFamily.InterNetwork,
  2.                                      SocketType.Stream,
  3.                                      ProtocolType.IPv4 );
it gives error: "The requested protocol has not been configured into the system, or no implementation for it exists"
what should i do for it
thanks
Nov 25 '07 #1
1 3418
Plater
7,872 Recognized Expert Expert
First off, please don't double post your question in the future.

Well generally you would be using
Expand|Select|Wrap|Line Numbers
  1. ProtocolType.Tcp
  2.  
So why you are trying to use either of those I don't know. Unless you're trying to send routing packets?
Nov 27 '07 #2

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

Similar topics

2
1805
by: Richy Rich | last post by:
Hi, I've developed an application in C# which spawns a thread to receive datagrams. If I use the socket receive method, there are no problems when using the application under NT or XP. I...
1
3377
by: John Sheppard | last post by:
Thanks to everyone that responded to my previous Socket Programming question. Now I have run into some behavior that I don't quite understand. Programming environment. VS.NET 2003, C#, Windows...
5
11643
by: mscirri | last post by:
The code below is what I am using to asynchronously get data from a PocketPC device. The data comes in fine in blocks of 1024 bytes but even when I send no data from the PocketPC constant blocks of...
3
1619
by: Martin | last post by:
I am a .Net newbie. I have Visual Studio.Net 2003 and have the luxury of being able to do some R&D/learning in a non-production environment. I want to develop a web application that will get the...
2
15302
by: djc | last post by:
I read a network programming book (based on framework 1.1) which indicated that you should 'never' use the RecieveTimeout or the SendTimeout 'socket options' on TCP sockets or you may loose data. I...
9
5511
by: zxo102 | last post by:
Hi everyone, I am using a python socket server to collect data from a socket client and then control a image location ( wxpython) with the data, i.e. moving the image around in the wxpython frame....
2
1171
by: tomlong76 | last post by:
Hi, First of all, I am not to sure if this is where i am suppose to post this kind of question. I am currently trying to convert a wireless application, that runs a wireless card using the...
0
1888
by: shonen | last post by:
I'm currently attempting to connect to a shoutcast server pull down the information from here and then I'll parse it. I got this working with the httplib, which was great, the problem is I want...
8
4665
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, I am new to .net technologies. ASP.NET supports socket programming like send/receive in c or c++? I am developing web-site application in asp.net and code behind is Visual C#. In...
0
7229
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
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
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...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
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
5057
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
4716
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
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.