News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Miscellaneous Forum
 
ProxySocket Class - Auto detect

Reply

by Jason [jasong714 at NOSPAM dot msn dot com]
posted on 2003/10/16

Hi,

I have been using your proxysocket class for .NET and find it extremely useful!

I was wondering how difficult it would be to add auto-detection functionality to detect the SOCKS version and what would be involved

I would greatly appreciate any input, as I am not too familiar with the SOCKS protocol and I cant find anything about this topic online.

Thanks!

Jason

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/10/16
Reply

It would not be difficult. The first byte that a client sends to the server is the version number. So if the first byte the server receives is a 4, it know that the client is using SOCKS4. Likewise, if the first byte is a 5, the client is using SOCKS5.

You can find more information about SOCKS at this address: http://www.socks.nec.com/

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/10/16
Reply

I just noticed you were talking about the ProxySocket class in particular. Note that the ProxySocket only implements the client side SOCKS protocol [whereas our Proxy server implements the server side protocol].

It is impossible for SOCKS clients to know beforehand which protocols the server supports. You'll have to ask the end user to decide whether to use SOCKS4 or 5. Alternatively, you can try to connect with version 4 and is the server disconnects you try with version 5.

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.