📄 simpleserverconnection.java
字号:
package ergo.server;
// $Id: SimpleServerConnection.java,v 1.1 1999/08/29 02:40:40 sigue Exp $
/*
* Copyright (C) 1999 Carl L. Gay and Antranig M. Basman.
* See the file copyright.txt, distributed with this software,
* for further information.
*/
/**
* The SimpleServerConnection interface is solely to reduce dependence on the
* ServerConnection class in the common case where somone only needs to be able
* to send a command to the server rather than reading data from the server.
*/
public interface SimpleServerConnection {
/** Send a command to the server. If we don't have a connection just
* fail silently for now. +++May want to throw an exception later...
*/
boolean send (String command);
/** Send a command to the server. If we don't have a connection just
* fail silently for now. +++May want to throw an exception later...
*
* @param command The command string, such as "observe 1".
* @param display Whether or not to display the command to the user before sending.
* @return true if the command is believed to have been sent. (Nothing is guaranteed
* on the network.)
*/
boolean send (String command, boolean display);
/** @return true of connected to the server; false otherwise.
*/
public boolean isConnected ();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -