📄 chatserver.java
字号:
/*
* Created on 2004-11-27
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package chat;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* @author Lance
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public interface ChatServer extends Remote{
/**
* 注册新的用户
*/
public void login(String name, Chatter chatter)
throws RemoteException;
/**
*用户退出
*/
public void logout(String name)throws RemoteException;
/**
*用户调用此方法把消息发送给所有用户
*/
public void chat(String name, String message)
throws RemoteException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -