?? identityserversocketfactory.java
字號(hào):
/*
* Copyright 1999 by dreamBean Software,
* All rights reserved.
*/
package masteringrmi.hellosocket.server;
import java.io.IOException;
import java.net.ServerSocket;
import java.rmi.RemoteException;
import java.rmi.server.RMIServerSocketFactory;
/**
* Create a new server socket factory. This factory is used by RMI to create
* server sockets that can connect to IdentitySockets.
*
* @see IdentitySocket
* @see IdentityServerSocket
* @author Rickard 謆erg
* @version $Revision:$
*/
public class IdentityServerSocketFactory
implements RMIServerSocketFactory
{
// RMIServerSocketFactory implementation -------------------------
/**
* Create a new server socket.
*
* @param port the port to listen to
* @return a server socket bound to the given port
* @exception IOException
*/
public ServerSocket createServerSocket(int port)
throws IOException
{
return new IdentityServerSocket(port);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -