gpt4 book ai didi

org.apache.xmlrpc.webserver.WebServer.setupServerSocket()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 15:01:05 24 4
gpt4 key购买 nike

本文整理了Java中org.apache.xmlrpc.webserver.WebServer.setupServerSocket()方法的一些代码示例,展示了WebServer.setupServerSocket()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServer.setupServerSocket()方法的具体详情如下:
包路径:org.apache.xmlrpc.webserver.WebServer
类名称:WebServer
方法名:setupServerSocket

WebServer.setupServerSocket介绍

[英]Initializes this server's listener socket with the specified attributes, assuring that a socket timeout has been set. The #createServerSocket(int,int,InetAddress) method can be overridden to change the flavor of socket used.
[中]使用指定的属性初始化此服务器的侦听器套接字,确保已设置套接字超时。可以重写#createServerSocket(int,int,InetAddress)方法来更改所用套接字的风格。

代码示例

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-server

/**
 * Spawns a new thread which binds this server to the port it's
 * configured to accept connections on.
 *
 * @see #run()
 * @throws IOException Binding the server socket failed.
 */
public void start() throws IOException {
  setupServerSocket(50);
  
  // The listener reference is released upon shutdown().
  if (listener == null) {
    listener = new Thread(this, "XML-RPC Weblistener");
    // Not marked as daemon thread since run directly via main().
    listener.start();
  }
}

代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-server

/**
 * Spawns a new thread which binds this server to the port it's
 * configured to accept connections on.
 *
 * @see #run()
 * @throws IOException Binding the server socket failed.
 */
public void start() throws IOException {
  setupServerSocket(50);
  
  // The listener reference is released upon shutdown().
  if (listener == null) {
    listener = new Thread(this, "XML-RPC Weblistener");
    // Not marked as daemon thread since run directly via main().
    listener.start();
  }
}

代码示例来源:origin: rosjava/rosjava_core

/**
 * Spawns a new thread which binds this server to the port it's
 * configured to accept connections on.
 *
 * @see #run()
 * @throws IOException Binding the server socket failed.
 */
public void start() throws IOException {
  setupServerSocket(50);
  
  // The listener reference is released upon shutdown().
  if (listener == null) {
    listener = new Thread(this, "XML-RPC Weblistener");
    // Not marked as daemon thread since run directly via main().
    listener.start();
  }
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com