Browse Source

bind to all ips

master
Sebastian Rieger 6 years ago
parent
commit
3caa916e67
  1. 9
      VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/RMIMandelbrotCalculationsServer.java

9
VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/RMIMandelbrotCalculationsServer.java

@ -1,18 +1,22 @@
package verteiltesysteme.mandelbrot.rmi;
import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
//import java.io.IOException;
//import java.net.InetAddress;
//import java.net.ServerSocket;
//import java.net.Socket;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.RMISocketFactory;
//import java.rmi.server.RMISocketFactory;
import java.rmi.server.UnicastRemoteObject;
/*
class LoopbackSocketFactory extends RMISocketFactory {
public ServerSocket createServerSocket(int port) throws IOException {
return new ServerSocket(port, 5, InetAddress.getByName("127.0.0.1"));
return new ServerSocket(port, 5, InetAddress.getByName("0.0.0.0"));
}
public Socket createSocket(String host, int port) throws IOException {
@ -21,7 +25,6 @@ class LoopbackSocketFactory extends RMISocketFactory {
.createSocket(host, port);
}
}
*/
class Complex {
double r;

Loading…
Cancel
Save