serviceconnector.java
来自「这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统」· Java 代码 · 共 42 行
JAVA
42 行
package net.sf.dz.daemon.tcp.client;import java.io.IOException;/** * Service connector. * * <p> * * Acts as a device container. * * @author Copyright © <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2001-2004 * @version $Id: ServiceConnector.java,v 1.2 2004/06/28 20:35:48 vtt Exp $ */public interface ServiceConnector { /** * Send a message across the wire. * * @param deviceAddress Remote device address. * * @param message Message to send. * * @exception IOException if the message couldn't be sent. */ public void send(String deviceAddress, String message) throws IOException; /** * Send a message across the wire and read the response. * * @param deviceAddress Remote device address. * * @param message Message to send. * * @return Response received. <strong>IMPORTANT:</strong> this must be * one line response. * * @exception IOException if the message couldn't be sent. */ public String sendExclusive(String deviceAddress, String message) throws IOException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?