I am looking for a good article on the theories of proxy servers. I am especially interested in articles that discuss how to handle multiple connections that possible has sample code in C/C++ or Java.
If you know of a really good article please post.
what are you trying to accomplish?
I am attempting to make a DII proxy that I can parse/modify packets sent to/from a battlenet server.
You're going to have to hook winsock. Please see the advanced programming forum - it has a thread with what you're trying to do.
Quote from: St0rm.iD on December 17, 2003, 06:05 PM
You're going to have to hook winsock. Please see the advanced programming forum - it has a thread with what you're trying to do.
Wasn't there a certain program called BinaryGateway written by a certain St0rm.iD that did something like this and did not require hooking Winsock?
This certain program did not use UDP.
Quote from: St0rm.iD on December 18, 2003, 01:50 PM
This certain program did not use UDP.
It wouldn't need to for D2, either...
I don't know how D2 works.
And why exactly is this on web development...?
Quote from: St0rm.iD on December 18, 2003, 03:11 PM
I don't know how D2 works.
And why exactly is this on web development...?
I posted in web development because I want a general article on proxy implementation, not specifically for DII, which is a web development subject isn't it?
Someone asked why I wanted to know about proxies and I answered for a DII proxy. Writing a DII proxy and a HTTP proxy should be very similar, shouldn't it?
As for hooking the winsock that isn't what I am looking to do. I want to be able to run a computer on my network and have all the DII clients connect through my proxy each one doesn't have to have something installed.
I don't really think bot development is the best place for this since I just would like some articles on general proxy theories with possibly a sample implementation. Not specifically in the context of a bot program.
Quote from: taylorjonl on December 18, 2003, 04:15 PM
Quote from: St0rm.iD on December 18, 2003, 03:11 PM
I don't know how D2 works.
And why exactly is this on web development...?
I posted in web development because I want a general article on proxy implementation, not specifically for DII, which is a web development subject isn't it?
Someone asked why I wanted to know about proxies and I answered for a DII proxy. Writing a DII proxy and a HTTP proxy should be very similar, shouldn't it?
A proxy isn't necessarily HTTP-related - for instance, see SOCKS. Specialized proxy programs that interpret the protocol(s) they are intended for (such as caching HTTP proxy programs) are a different matter.
Depending on what you want to do, you might want to end up interpreting the Battle.net protocol with your proxy. If this is the case, then the best forum to discuss would be the Battle.net Bot Development forum.
Quote from: Skywing on December 17, 2003, 08:42 PM
Quote from: St0rm.iD on December 17, 2003, 06:05 PM
You're going to have to hook winsock. Please see the advanced programming forum - it has a thread with what you're trying to do.
Wasn't there a certain program called BinaryGateway written by a certain St0rm.iD that did something like this and did not require hooking Winsock?
I'm not sure about the original BinaryGateway, but the current version used to connect bots to Battle.net, called BG3, is a translator. The requisite is that you connect to Battle.net via 127.0.0.1 (localhost), so it isn't a transparent proxy, and I also believe that it does not support UDP, so you get the plug.
Original Binary Gateway was a proxy bot that also allowed chat clients to connect.
BG2, the precursor to BG3, is similar to what we have today.