Java Doc for Socks5SocketChannelAdaptor.java in  » IDE-Netbeans » collab » org » netbeans » lib » collab » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » collab » org.netbeans.lib.collab.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.lib.collab.util.Socks5SocketChannelAdaptor

Socks5SocketChannelAdaptor
public class Socks5SocketChannelAdaptor (Code)
A standalone SOCKS V5 SocketChannel provider. This code is an adaptation of a standalone socket SOCKS 5 client socket implementation written by Todd Fast and Matt Stevens. This copying was necessary in order to use SOCKS on a per-socket basis, as the JDK only allows SOCKS usage across the entire VM.
author:
   Jacques Belissent
author:
   Matt Stevens, matthew.stevens@sun.com
author:
   Todd Fast, todd.fast@sun.com


Field Summary
final static  byteADDR_TYPE_NOT_SUP
    
final static  byteBIND
    
final static  byteCMD_NOT_SUPPORTED
    
final static  byteCONNECT
    
final static  byteCONN_REFUSED
    
final static  intDEFAULT_PORT
    
final static  byteDOMAIN_NAME
    
final static  byteGENERAL_FAILURE
    
final static  byteGSSAPI
    
final static  byteHOST_UNREACHABLE
    
final static  byteIPV4
    
final static  byteIPV6
    
final static  byteNET_UNREACHABLE
    
final static  byteNOT_ALLOWED
    
final static  byteNO_AUTH
    
final static  shortNO_METHODS
    
final static  bytePROTO_VERS
    
final static  bytePROTO_VERS4
    
final static  byteREQUEST_OK
    
final static  byteTTL_EXPIRED
    
final static  byteUDP_ASSOC
    
final static  byteUSER_PASSW
    


Method Summary
public  SocketChannelgetChannel()
    
public static  voidmain(String[] args)
    
public static  SocketChannelopen(String host, int port, String socksHost, int socksPort, String username, String password)
    
public static  SocketChannelopen(InetAddress address, int port, InetAddress socksAddress, int socksPort, String username, String password)
    
public static  SocketChannelopen(String host, int port, SocketChannel socksProxyChannel, String socksHost, int socksPort, String username, String password)
    
public  StringtoString()
    

Field Detail
ADDR_TYPE_NOT_SUP
final static byte ADDR_TYPE_NOT_SUP(Code)



BIND
final static byte BIND(Code)



CMD_NOT_SUPPORTED
final static byte CMD_NOT_SUPPORTED(Code)



CONNECT
final static byte CONNECT(Code)



CONN_REFUSED
final static byte CONN_REFUSED(Code)



DEFAULT_PORT
final static int DEFAULT_PORT(Code)



DOMAIN_NAME
final static byte DOMAIN_NAME(Code)



GENERAL_FAILURE
final static byte GENERAL_FAILURE(Code)



GSSAPI
final static byte GSSAPI(Code)



HOST_UNREACHABLE
final static byte HOST_UNREACHABLE(Code)



IPV4
final static byte IPV4(Code)



IPV6
final static byte IPV6(Code)



NET_UNREACHABLE
final static byte NET_UNREACHABLE(Code)



NOT_ALLOWED
final static byte NOT_ALLOWED(Code)



NO_AUTH
final static byte NO_AUTH(Code)



NO_METHODS
final static short NO_METHODS(Code)



PROTO_VERS
final static byte PROTO_VERS(Code)



PROTO_VERS4
final static byte PROTO_VERS4(Code)



REQUEST_OK
final static byte REQUEST_OK(Code)



TTL_EXPIRED
final static byte TTL_EXPIRED(Code)



UDP_ASSOC
final static byte UDP_ASSOC(Code)



USER_PASSW
final static byte USER_PASSW(Code)





Method Detail
getChannel
public SocketChannel getChannel()(Code)



main
public static void main(String[] args)(Code)



open
public static SocketChannel open(String host, int port, String socksHost, int socksPort, String username, String password) throws UnknownHostException, IOException(Code)
open a connection to a remote host via a SOCKS V5 proxy
Parameters:
  host - remote host name
Parameters:
  host - remote port
Parameters:
  socksHost - SOCKS 5 proxy server hostname
Parameters:
  socksPort - SOCKS 5 proxy server port
Parameters:
  username - SOCKS authentication credential's identity
Parameters:
  password - SOCKS authentication credential's password



open
public static SocketChannel open(InetAddress address, int port, InetAddress socksAddress, int socksPort, String username, String password) throws IOException(Code)
open a connection to a remote host via a SOCKS5 proxy
Parameters:
  host - remote host name
Parameters:
  host - remote port
Parameters:
  socksAddress - SOCKS 5 proxy server IP address
Parameters:
  socksPort - SOCKS 5 proxy server port
Parameters:
  username - SOCKS authentication credential's identity
Parameters:
  password - SOCKS authentication credential's password



open
public static SocketChannel open(String host, int port, SocketChannel socksProxyChannel, String socksHost, int socksPort, String username, String password) throws UnknownHostException, IOException(Code)
open a connection to a remote host via a SOCKS V5 proxy
Parameters:
  host - remote host name
Parameters:
  host - remote port
Parameters:
  socksProxychannel - preconfigured socks proxy channel
Parameters:
  socksHost - SOCKS 5 proxy server hostname
Parameters:
  socksPort - SOCKS 5 proxy server port
Parameters:
  username - SOCKS authentication credential's identity
Parameters:
  password - SOCKS authentication credential's password



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.