package com.vest.kungfu.utility;
import java.net.InetAddress;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.util.Date;
public class RmiServer extends java.rmi.server.UnicastRemoteObject implements
InterfaceCrc
{
int thisPort;
String thisAddress;
Registry registry; // rmi registry for lookup the remote objects.
public String crc(String code) throws RemoteException {
// TODO Auto-generated method stub
Pwdcrc crc=new Pwdcrc();
return crc.CRCPassword(code);
}
public RmiServer() throws RemoteException
{
try {
// get the address of this host.
thisAddress = (InetAddress.getLocalHost()).toString();
}
catch (Exception e) {
throw new RemoteException("can't get inet address.");
}
thisPort = 3232; // this port(registry’s port)
System.out.println("-->Local:" + thisAddress + ",port=" + thisPort);
try {
// create the registry and bind the name and object.
registry = LocateRegistry.createRegistry(thisPort);
registry.rebind("RMICRC", this);
System.out.println("-->RMI服務器啟動了!等待客戶端的連接 @"+(new Date()));
}
catch (RemoteException e) {
throw e;
}
}
static public void main(String args[])
{
try {
RmiServer s = new RmiServer();
}
catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
java-crc.rar_crc java_crc-ccitt_java crc
共92个文件
prefs:59个
xml:13个
java:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 131 浏览量
2022-09-14
15:59:54
上传
评论
收藏 53KB RAR 举报
温馨提示
test upload file 1111111
资源推荐
资源详情
资源评论
收起资源包目录
java-crc.rar (92个子文件)
java-crc
bin
com
vest
kungfu
utility
Pwdcrc.class 626B
Crc.class 806B
RmiServer.class 2KB
ClientSample.class 981B
InterfaceCrc.class 260B
.metadata
.lock 0B
.plugins
com.genuitec.eclipse.sqlexplorer
ConnectionProfiles.xml 842B
SQLDrivers.xml 16KB
com.genuitec.org.hibernate.eclipse
org.eclipse.jdt.ui
QualifiedTypeNameHistory.xml 69B
OpenTypeHistory.xml 60B
dialog_settings.xml 3KB
org.eclipse.debug.core
com.genuitec.eclipse.desktop
dialog_settings.xml 80B
com.genuitec.eclipse.hibernate
org.eclipse.core.runtime
.settings
org.eclipse.ui.workbench.prefs 1KB
com.genuitec.eclipse.easie.orion2.prefs 104B
com.genuitec.eclipse.easie.sun8.prefs 104B
com.genuitec.eclipse.easie.sun.prefs 104B
com.genuitec.eclipse.easie.sunglassfish.prefs 104B
com.genuitec.eclipse.easie.weblogic8.prefs 104B
com.genuitec.eclipse.derby.prefs 83B
com.genuitec.eclipse.easie.jboss.prefs 104B
com.genuitec.eclipse.easie.jonas3.prefs 104B
com.genuitec.eclipse.easie.weblogic7.prefs 104B
org.eclipse.ui.prefs 79B
com.genuitec.eclipse.easie.resin2.prefs 104B
com.genuitec.eclipse.easie.orion1.prefs 104B
com.genuitec.eclipse.jsf.prefs 564B
com.genuitec.eclipse.hibernate.prefs 83B
org.eclipse.core.resources.prefs 73B
org.eclipse.ui.ide.prefs 128B
com.genuitec.eclipse.easie.jonas4.prefs 104B
com.genuitec.eclipse.easie.jboss3.prefs 104B
com.genuitec.eclipse.easie.weblogic9.prefs 104B
com.genuitec.eclipse.easie.tomcat4.prefs 104B
com.genuitec.eclipse.easie.weblogic6.prefs 104B
com.genuitec.eclipse.easie.jetty5.prefs 104B
com.genuitec.eclipse.easie.websphere5.prefs 104B
com.genuitec.eclipse.easie.weblogic10.prefs 104B
com.genuitec.eclipse.easie.jboss5.prefs 104B
com.genuitec.myeclipse.compatibility.prefs 88B
com.genuitec.eclipse.easie.jetty4.prefs 104B
com.genuitec.eclipse.easie.tomcat5.prefs 104B
com.genuitec.eclipse.easie.sun81.prefs 104B
com.genuitec.eclipse.easie.websphere.prefs 104B
com.genuitec.eclipse.easie.core.prefs 104B
com.genuitec.eclipse.easie.websphere61.prefs 104B
com.genuitec.eclipse.easie.jonas.prefs 104B
com.genuitec.eclipse.easie.sun9.prefs 104B
org.eclipse.jdt.ui.prefs 426B
com.genuitec.eclipse.easie.resin3.prefs 104B
com.genuitec.eclipse.easie.oracle.prefs 104B
com.genuitec.eclipse.easie.geronimo1.prefs 104B
org.eclipse.jdt.launching.prefs 517B
com.genuitec.eclipse.easie.weblogic.prefs 104B
com.genuitec.eclipse.easie.jetty.prefs 104B
com.genuitec.eclipse.wizards.prefs 1KB
com.genuitec.eclipse.easie.resin.prefs 104B
com.genuitec.eclipse.easie.tomcat.prefs 104B
com.genuitec.eclipse.easie.jrun.prefs 104B
com.genuitec.eclipse.easie.geronimo2.prefs 104B
com.genuitec.eclipse.easie.jboss4.prefs 104B
com.genuitec.eclipse.easie.bejy.prefs 104B
com.genuitec.eclipse.easie.oracle10.prefs 104B
com.genuitec.eclipse.easie.websphere6.prefs 104B
com.genuitec.eclipse.easie.jboss2.prefs 104B
com.genuitec.eclipse.easie.jetty6.prefs 104B
com.genuitec.eclipse.easie.oracle9.prefs 104B
com.genuitec.eclipse.easie.sunglassfish2.prefs 104B
org.eclipse.jdt.core.prefs 758B
com.genuitec.eclipse.easie.jrun4.prefs 104B
com.genuitec.eclipse.easie.tomcat6.prefs 104B
org.eclipse.debug.ui
org.eclipse.ui.workbench
dialog_settings.xml 80B
workbench.xml 17KB
org.eclipse.wst.common.snippets
hidden.xml 106B
user.xml 224KB
com.genuitec.eclipse.dehory
org.eclipse.jdt.launching
libraryInfos.xml 2KB
org.eclipse.jdt.core
variablesAndContainers.dat 670B
org.eclipse.core.resources
.history
.root
1.tree 77B
.indexes
properties.index 57B
history.version 1B
properties.version 1B
.safetable
org.eclipse.core.resources 319B
org.eclipse.jst.jsf.core
JSFLibraryRegistry.xml 157B
org.eclipse.ui.ide
dialog_settings.xml 484B
version.ini 26B
.settings
org.eclipse.jdt.core.prefs 629B
src
com
vest
kungfu
utility
Crc.java 620B
InterfaceCrc.java 211B
Pwdcrc.java 611B
RmiServer.java 1KB
ClientSample.java 437B
.project 384B
.classpath 232B
共 92 条
- 1
资源评论
APei
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功