simpleserverconnection.java
来自「ErGo是一个很早的Java通用围棋服务器(IGS/NNGS)客户端程序。有全部」· Java 代码 · 共 38 行
JAVA
38 行
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 + =
减小字号Ctrl + -
显示快捷键?