congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
NioReceiver.configureDatagraChannel
Code IndexAdd Tabnine to your IDE (free)

How to use
configureDatagraChannel
method
in
org.apache.catalina.tribes.transport.nio.NioReceiver

Best Java code snippets using org.apache.catalina.tribes.transport.nio.NioReceiver.configureDatagraChannel (Showing top 3 results out of 315)

origin: org.apache.tomcat/tomcat-tribes

protected void bind() throws IOException {
  // allocate an unbound server socket channel
  serverChannel = ServerSocketChannel.open();
  // Get the associated ServerSocket to bind it with
  ServerSocket serverSocket = serverChannel.socket();
  // create a new Selector for use below
  this.selector.set(Selector.open());
  // set the port the server channel will listen to
  //serverSocket.bind(new InetSocketAddress(getBind(), getTcpListenPort()));
  bind(serverSocket,getPort(),getAutoBind());
  // set non-blocking mode for the listening socket
  serverChannel.configureBlocking(false);
  // register the ServerSocketChannel with the Selector
  serverChannel.register(this.selector.get(), SelectionKey.OP_ACCEPT);
  //set up the datagram channel
  if (this.getUdpPort()>0) {
    datagramChannel = DatagramChannel.open();
    configureDatagraChannel();
    //bind to the address to avoid security checks
    bindUdp(datagramChannel.socket(),getUdpPort(),getAutoBind());
  }
}
origin: codefollower/Tomcat-Research

protected void bind() throws IOException {
  // allocate an unbound server socket channel
  serverChannel = ServerSocketChannel.open();
  // Get the associated ServerSocket to bind it with
  ServerSocket serverSocket = serverChannel.socket();
  // create a new Selector for use below
  synchronized (Selector.class) {
    // Selector.open() isn't thread safe
    // http://bugs.sun.com/view_bug.do?bug_id=6427854
    // Affects 1.6.0_29, fixed in 1.7.0_01
    this.selector.set(Selector.open());
  }
  // set the port the server channel will listen to
  //serverSocket.bind(new InetSocketAddress(getBind(), getTcpListenPort()));
  bind(serverSocket,getPort(),getAutoBind());
  // set non-blocking mode for the listening socket
  serverChannel.configureBlocking(false);
  // register the ServerSocketChannel with the Selector
  serverChannel.register(this.selector.get(), SelectionKey.OP_ACCEPT);
  //set up the datagram channel
  if (this.getUdpPort()>0) {
    datagramChannel = DatagramChannel.open();
    configureDatagraChannel();
    //bind to the address to avoid security checks
    bindUdp(datagramChannel.socket(),getUdpPort(),getAutoBind());
  }
}
origin: org.apache.geronimo.ext.tomcat/tribes

protected void bind() throws IOException {
  // allocate an unbound server socket channel
  serverChannel = ServerSocketChannel.open();
  // Get the associated ServerSocket to bind it with
  ServerSocket serverSocket = serverChannel.socket();
  // create a new Selector for use below
  synchronized (Selector.class) {
    // Selector.open() isn't thread safe
    // http://bugs.sun.com/view_bug.do?bug_id=6427854
    // Affects 1.6.0_29, fixed in 1.7.0_01
    this.selector.set(Selector.open());
  }
  // set the port the server channel will listen to
  //serverSocket.bind(new InetSocketAddress(getBind(), getTcpListenPort()));
  bind(serverSocket,getPort(),getAutoBind());
  // set non-blocking mode for the listening socket
  serverChannel.configureBlocking(false);
  // register the ServerSocketChannel with the Selector
  serverChannel.register(this.selector.get(), SelectionKey.OP_ACCEPT);
  //set up the datagram channel
  if (this.getUdpPort()>0) {
    datagramChannel = DatagramChannel.open();
    configureDatagraChannel();
    //bind to the address to avoid security checks
    bindUdp(datagramChannel.socket(),getUdpPort(),getAutoBind());
  }
}
org.apache.catalina.tribes.transport.nioNioReceiverconfigureDatagraChannel

Popular methods of NioReceiver

  • addEvent
  • bind
  • cancelledKey
  • doListen
  • events
  • getAutoBind
  • getBind
  • getExecutor
  • getMaxThreads
  • getMinThreads
  • getOoBInline
  • getRxBufSize
  • getOoBInline,
  • getRxBufSize,
  • getSelectorTimeout,
  • getSoKeepAlive,
  • getSoLingerOn,
  • getSoLingerTime,
  • getSoReuseAddress,
  • getSoTrafficClass,
  • getTaskPool,
  • getTcpNoDelay

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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