类 MconClient
- java.lang.Object
-
- cn.mcres.gyhhy.MXLib.mcon.MconClient
-
- 所有已实现的接口:
Types
,Closeable
,AutoCloseable
public class MconClient extends Object implements Types, Closeable, AutoCloseable
-
-
字段概要
-
从接口继承的字段 cn.mcres.gyhhy.MXLib.mcon.Types
ADD_PERMISSION, INVOKE_COMMAND, REMOVE_PERMISSION, SET_NAME, SET_OP, STOP, UTF_8
-
-
构造器概要
构造器 构造器 说明 MconClient(String host, int port, byte[] pwd)
-
方法概要
修饰符和类型 方法 说明 void
close()
void
connect()
ByteBuffer
read()
void
send(int a, String b)
void
send(ByteBuffer data)
void
sendCommand(String line)
void
setName(String name)
void
setOp(boolean b)
-
-
-
构造器详细资料
-
MconClient
public MconClient(String host, int port, byte[] pwd)
-
-
方法详细资料
-
connect
public void connect() throws IOException
- 抛出:
IOException
-
send
public void send(int a, String b) throws IOException
- 抛出:
IOException
-
sendCommand
public void sendCommand(String line) throws IOException
- 抛出:
IOException
-
setOp
public void setOp(boolean b) throws IOException
- 抛出:
IOException
-
setName
public void setName(String name) throws IOException
- 抛出:
IOException
-
close
public void close() throws IOException
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 抛出:
IOException
-
read
public ByteBuffer read() throws IOException
- 抛出:
IOException
-
send
public void send(ByteBuffer data) throws IOException
- 抛出:
IOException
-
-