Tabnine Logo
SocksMethodRequester
Code IndexAdd Tabnine to your IDE (free)

How to use
SocksMethodRequester
in
sockslib.client

Best Java code snippets using sockslib.client.SocksMethodRequester (Showing top 2 results out of 315)

origin: theotherp/nzbhydra2

@Override
public void buildConnection() throws SocksException, IOException {
  if (inetAddress == null) {
    throw new IllegalArgumentException("Please set inetAddress before calling buildConnection.");
  }
  if (proxySocket == null) {
    proxySocket = createProxySocket(inetAddress, port);
  } else if (!proxySocket.isConnected()) {
    proxySocket.connect(new InetSocketAddress(inetAddress, port));
  }
  SocksMethod method =
      socksMethodRequester.doRequest(acceptableMethods, proxySocket, SOCKS_VERSION);
  method.doMethod(this);
}
origin: fengyouchao/sockslib

@Override
public void buildConnection() throws SocksException, IOException {
 if (inetAddress == null) {
  throw new IllegalArgumentException("Please set inetAddress before calling buildConnection.");
 }
 if (proxySocket == null) {
  proxySocket = createProxySocket(inetAddress, port);
 } else if (!proxySocket.isConnected()) {
  proxySocket.connect(new InetSocketAddress(inetAddress, port));
 }
 SocksMethod method =
   socksMethodRequester.doRequest(acceptableMethods, proxySocket, SOCKS_VERSION);
 method.doMethod(this);
}
sockslib.clientSocksMethodRequester

Javadoc

The interface SocksMethodRequester is a tool that can send request message from SOCKS server and get a method that server accepted.

Most used methods

  • doRequest
    Send request message to server. This method will send list of methods to SOCKS server and receive t

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JFrame (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now