Tabnine Logo
sockslib.server.msg
Code IndexAdd Tabnine to your IDE (free)

How to use sockslib.server.msg

Best Java code snippets using sockslib.server.msg (Showing top 20 results out of 315)

origin: fengyouchao/sockslib

@Override
public int getLength() {
 byte[] bytes = getBytes();
 return (bytes != null) ? bytes.length : 0;
}
origin: theotherp/nzbhydra2

@Override
public int read(ReadableMessage message) throws SocksException, IOException {
  message.read(inputStream);
  return message.getLength();
}
origin: theotherp/nzbhydra2

@Override
public int getLength() {
  return getBytes().length;
}
origin: theotherp/nzbhydra2

@Override
public void onCommand(Session session, CommandMessage message) throws CloseSessionException {
  logger.info("SESSION[{}] request:{}  {}:{}", session.getId(), message.getCommand(),
      message.getAddressType() != AddressType.DOMAIN_NAME ?
          message.getInetAddress() :
          message.getHost(), message.getPort());
}
origin: fengyouchao/sockslib

@Override
public int getLength() {
 return getBytes().length;
}
origin: theotherp/nzbhydra2

@Override
public int getLength() {
  return getBytes().length;
}
origin: theotherp/nzbhydra2

@Override
public int getLength() {
  return getBytes().length;
}
origin: theotherp/nzbhydra2

@Override
public int getLength() {
  return getBytes().length;
}
origin: fengyouchao/sockslib

/**
 * Returns a {@link SocksException} instance with a message of reply.
 *
 * @param reply Server's reply.
 * @return An instance of {@link SocksException}.
 */
public static SocksException serverReplyException(ServerReply reply) {
 SocksException ex = serverReplyException(reply.getValue());
 ex.setServerReply(reply);
 return ex;
}
origin: theotherp/nzbhydra2

@Override
public void write(WritableMessage message) throws SocksException, IOException {
  write(message.getBytes());
}
origin: theotherp/nzbhydra2

@Override
public SocksMethod select(MethodSelectionMessage message) {
  int[] methods = message.getMethods();
  for (int i = 0; i < methods.length; i++) {
    for (SocksMethod method : supportMethods) {
      if (method.getByte() == methods[i]) {
        return method;
      }
    }
  }
  return new NoAcceptableMethod();
}
origin: fengyouchao/sockslib

@Override
public int read(ReadableMessage message) throws SocksException, IOException {
 message.read(inputStream);
 return message.getLength();
}
origin: theotherp/nzbhydra2

@Override
public int getLength() {
  return getBytes().length;
}
origin: fengyouchao/sockslib

@Override
public int getLength() {
 return getBytes().length;
}
origin: theotherp/nzbhydra2

@Override
public int getLength() {
  return getBytes().length;
}
origin: fengyouchao/sockslib

@Override
public int getLength() {
 return getBytes().length;
}
origin: fengyouchao/sockslib

@Override
public int getLength() {
 return getBytes().length;
}
origin: fengyouchao/sockslib

@Override
public int getLength() {
 return getBytes().length;
}
origin: theotherp/nzbhydra2

/**
 * Returns a {@link SocksException} instance with a message of reply.
 *
 * @param reply Server's reply.
 * @return An instance of {@link SocksException}.
 */
public static SocksException serverReplyException(ServerReply reply) {
  SocksException ex = serverReplyException(reply.getValue());
  ex.setServerReply(reply);
  return ex;
}
origin: fengyouchao/sockslib

@Override
public void write(WritableMessage message) throws SocksException, IOException {
 write(message.getBytes());
}
sockslib.server.msg

Most used classes

  • CommandMessage
    The class RequestCommandMessage represents a SOCKS5 command message.
  • CommandResponseMessage
    The class CommandResponseMessage represents a command response message.
  • MethodSelectionMessage
    The class MethodSelectionMessage represents a method selection message.
  • MethodSelectionResponseMessage
    The class MethodSelectionResponseMessage represents response message for method selection message. T
  • ReadableMessage
    The interface ReadableMessage represents a message that can be read by Session.
  • UsernamePasswordMessage,
  • UsernamePasswordResponseMessage,
  • WritableMessage
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