
org.sapia.ubik.net.DefaultUbikServerSocketFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sapia_ubik Show documentation
Show all versions of sapia_ubik Show documentation
A RMI-like distributed computing framework
The newest version!
package org.sapia.ubik.net;
import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;
/**
* @author Yanick Duchesne
*
* - Copyright:
- Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
* - License:
- Read the license.txt file of the jar or visit the
* license page at the Sapia OSS web site
*
*/
public class DefaultUbikServerSocketFactory implements UbikServerSocketFactory {
/**
* @see org.sapia.ubik.net.UbikServerSocketFactory#createServerSocket(int, java.lang.String)
*/
public ServerSocket createServerSocket(int port, String bindAddr)
throws IOException {
return new ServerSocket(port, 50, InetAddress.getByName(bindAddr));
}
/**
* @see java.rmi.server.RMIServerSocketFactory#createServerSocket(int)
*/
public ServerSocket createServerSocket(int port) throws IOException {
return new ServerSocket(port);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy