|
@ -1,18 +1,22 @@ |
|
|
package verteiltesysteme.mandelbrot.rmi; |
|
|
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.io.IOException; |
|
|
//import java.net.InetAddress; |
|
|
//import java.net.InetAddress; |
|
|
//import java.net.ServerSocket; |
|
|
//import java.net.ServerSocket; |
|
|
//import java.net.Socket; |
|
|
//import java.net.Socket; |
|
|
import java.rmi.registry.LocateRegistry; |
|
|
import java.rmi.registry.LocateRegistry; |
|
|
import java.rmi.registry.Registry; |
|
|
import java.rmi.registry.Registry; |
|
|
|
|
|
import java.rmi.server.RMISocketFactory; |
|
|
//import java.rmi.server.RMISocketFactory; |
|
|
//import java.rmi.server.RMISocketFactory; |
|
|
import java.rmi.server.UnicastRemoteObject; |
|
|
import java.rmi.server.UnicastRemoteObject; |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
class LoopbackSocketFactory extends RMISocketFactory { |
|
|
class LoopbackSocketFactory extends RMISocketFactory { |
|
|
public ServerSocket createServerSocket(int port) throws IOException { |
|
|
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 { |
|
|
public Socket createSocket(String host, int port) throws IOException { |
|
@ -21,7 +25,6 @@ class LoopbackSocketFactory extends RMISocketFactory { |
|
|
.createSocket(host, port); |
|
|
.createSocket(host, port); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
class Complex { |
|
|
class Complex { |
|
|
double r; |
|
|
double r; |
|
|