Multithreaded proxy?

J

jim

I need to write a multithreaded proxy in VB.Net 2005 that will listen on a
set port, accept incoming TCP connections, create an outgoing TCP connection
for each incoming connection accepted to a known IP/port and allow the
incoming connection to talk to the server at the end of the outgoing
connection. The proxy server should do nothing to/with the data except act
as a tunnel from the incoming TCP connections to the outgoing TCP
connection.

I am trying to create a generic proxy that can make many applications come
from a single IP address. We need this for an application/webservice that
our company subscribes to. We have permission to use the service in this
manner, and it has been given to me to figure out how to make it happen.

I have looked at several examples of VB.Net multi-threaded proxy servers on
the web, but none of them work as advertised.

This seems to be a pretty simple task, but I am a rank beginner at VB.Net
and I just can't seem to figure it out.

Any help that you could give would be most appreciated.

Thanks!
 
M

Mr. Arnold

jim said:
I need to write a multithreaded proxy in VB.Net 2005 that will listen on a
set port, accept incoming TCP connections, create an outgoing TCP
connection for each incoming connection accepted to a known IP/port and
allow the incoming connection to talk to the server at the end of the
outgoing connection. The proxy server should do nothing to/with the data
except act as a tunnel from the incoming TCP connections to the outgoing
TCP connection.

I am trying to create a generic proxy that can make many applications come
from a single IP address. We need this for an application/webservice that
our company subscribes to. We have permission to use the service in this
manner, and it has been given to me to figure out how to make it happen.

I have looked at several examples of VB.Net multi-threaded proxy servers
on the web, but none of them work as advertised.

This seems to be a pretty simple task, but I am a rank beginner at VB.Net
and I just can't seem to figure it out.

Any help that you could give would be most appreciated.

Anything you can do in C# can be done in VB.Net as well. They both use the
same .Net Framework.

http://www.google.com/search?hl=en&q=Multithreaded+tcp+proxy+C#.net&btnG=Search
 
J

jim

Mr. Arnold said:
Anything you can do in C# can be done in VB.Net as well. They both use the
same .Net Framework.

http://www.google.com/search?hl=en&q=Multithreaded+tcp+proxy+C#.net&btnG=Search

I've tried all of those that I could find also. I used the C# to VB
conversion tool at
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx to convert
to VB.

They still don't work. Most of them were written as far back as 2001 and
the code is no longer functional due to obsolete functions and classes.

As I may have mentioned, I am a beginner at VB.Net. What would really help
me learn this multi-threaded proxy stuff would be an example that I can play
with that works. Looking at broken code doesn't help a whole lot, as I can
write broken code just fine.

jim
 
M

Mr. Arnold

jim said:
I've tried all of those that I could find also. I used the C# to VB
conversion tool at
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx to
convert to VB.

They still don't work. Most of them were written as far back as 2001 and
the code is no longer functional due to obsolete functions and classes.

As I may have mentioned, I am a beginner at VB.Net. What would really
help me learn this multi-threaded proxy stuff would be an example that I
can play with that works. Looking at broken code doesn't help a whole
lot, as I can write broken code just fine.

The key to anything is can you make it work, that way you learn. I have seen
some code that didn't work myself, but I got it to work no matter if it was
C# or VB NET. It was just slightly out dated. Sometimes, all you got to be
is in the ballpark.

It's really not going to get any better than what you have seen. There is no
goose that's laying the golden egg.
 
G

Guest

I've tried all of those that I could find also. I used the C# to VB
conversion tool at
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx to
convert to VB.

They still don't work. Most of them were written as far back as 2001
and the code is no longer functional due to obsolete functions and
classes.

As I may have mentioned, I am a beginner at VB.Net. What would really
help me learn this multi-threaded proxy stuff would be an example that
I can play with that works. Looking at broken code doesn't help a
whole lot, as I can write broken code just fine.

That's probably as close as you'll get.

A Multi-Threaded Proxy isn't exactly a Hello World application ;-)

Ignore the warnings about the obsolete classes and try to convert the
project into a compilable state.

Once you get everything running - then cleanup the project and remove the
obsolete classes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top