473,322 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

setting NetworkInterface info c#

Hi all,

I am working on a custom Proxy Server in C# that can make HttpWebRequests / Responses via
two Network Interfaces (one wired, one wifi). I think there are three general approaches to this:

1)give up on HttpWebRequests, use Sockets/TcpClients and bind my own socket to each interface

2)Find a way to gain access to changing System.Net.NetworkInformation.NetworkInterface objects

3)Another way all of you genius' know about

I am fairly familiar with all of the System.Net objects, but would prefer not to
use the Sockets type as a nice HttpWebRequest object is already written/tested/etc.
Does anybody know how to gain socket access of these objects? any ideas at all?

I appreciate any help with this.

Thanks ahead of time,
Nick
Jun 12 '07 #1
2 1489
Plater
7,872 Expert 4TB
What do you mean socket access? What do you need to do?
You said you didn't want to use the Socket object but you want access to the Socket inside HttpWebRequest?



**Remembers having to do this in C++ with sockets back in college....ugh***
Jun 12 '07 #2
hi plater,

well, i would like to change a couple parts of the socketinfo OF the
HttpWebRequest... i.e. bind all requests for files with .mp3 to use my wired
interface and bind all requests for html to use my wifi interface.

any ideas at all?

thanks,
nick
Jun 12 '07 #3

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

Similar topics

3
by: Torsten Bronger | last post by:
Hallöchen! I have to generate excerpts in different human languages in a program. In general, the language is not the locale's language, but set at runtime. Nevertheless, GNU's gettext should...
3
by: Pete | last post by:
Looking for professional information, (surveys, articles or just general comments etc.) regrding the current most common screen setting among endusers. (Ie: 800x600) or something else. A subset...
0
by: DHarry | last post by:
Hello, I'm a german student and I'm writing a c# .net 2.0 application which monitors and displays the whole network traffic of a selected network interface. To get the network traffic, I use the...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.