本文整理了Java中org.apache.xmlrpc.webserver.WebServer.setupServerSocket()
方法的一些代码示例,展示了WebServer.setupServerSocket()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServer.setupServerSocket()
方法的具体详情如下:
包路径:org.apache.xmlrpc.webserver.WebServer
类名称: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();
}
}
内容来源于网络,如有侵权,请联系作者删除!