• Welcome to Valhalla Legends Archive.
 

Proxy Support Help

Started by Inner, May 17, 2004, 08:05 PM

Previous topic - Next topic

BinaryzL

#15
Quote from: LoRd[nK] on May 18, 2004, 06:56 PM
Quote from: Inner on May 17, 2004, 08:11 PM
That kind of doesn't answer why my code doesn't work, but thankyou.
If you actually read the SOCKS documentation I showed you, you'd notice that you're sending the port in the entirely wrong format.
You'll need to use Winsocks htons() function to convert the server port into network byte order before sending it to the SOCKS server.

Well in this case I doubt that is causing the problem here but it could be.

Eric

#16
Quote from: BinaryzL on May 18, 2004, 06:57 PM
Quote from: LoRd[nK] on May 18, 2004, 06:56 PM
Quote from: Inner on May 17, 2004, 08:11 PM
That kind of doesn't answer why my code doesn't work, but thankyou.
If you actually read the SOCKS documentation I showed you, you'd notice that you're sending the port in the entirely wrong format.
You'll need to use Winsocks htons() function to convert the server port into network byte order before sending it to the SOCKS server.

Well in this case I doubt that is causing the problem here but it could be.

Ofcourse it is. If the incorrect server port is entered, the proxy will always fail to connect to the server.

Inner

I got it working properly, thanks to all of you, especially Binary, thanks alot.