类 AuthenticationRemoteConnection
- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.event.Event
-
- cn.mcres.karlatemp.mxlib.remote.RemoteConnection
-
- cn.mcres.karlatemp.mxlib.remote.AuthenticationRemoteConnection
-
public class AuthenticationRemoteConnection extends RemoteConnection
-
-
嵌套类概要
-
从类继承的嵌套类/接口 cn.mcres.karlatemp.mxlib.remote.RemoteConnection
RemoteConnection.Status
-
-
字段概要
-
从类继承的字段 cn.mcres.karlatemp.mxlib.remote.RemoteConnection
acc, buffer, current_packet, handlers, socket, status
-
-
构造器概要
构造器 构造器 说明 AuthenticationRemoteConnection(SocketChannel socket)AuthenticationRemoteConnection(SocketChannel socket, KeyPair rsa)
-
方法概要
修饰符和类型 方法 说明 ByteBuffergetBuffer()Get the data buffer.AuthenticationRemoteConnectioninit()voidpost()voidsendPacket(short type, ByteBuffer send)Send a packet to remote-
从类继承的方法 cn.mcres.karlatemp.mxlib.remote.RemoteConnection
badPacket, disconnect, disconnect, getHandlerList, getStatus, onSelected, sendEmptyPacket, sendPacket, sendPacket
-
-
-
-
字段详细资料
-
cipher
public static final Cipher cipher
-
-
构造器详细资料
-
AuthenticationRemoteConnection
public AuthenticationRemoteConnection(SocketChannel socket)
-
AuthenticationRemoteConnection
public AuthenticationRemoteConnection(SocketChannel socket, @NotNull KeyPair rsa)
-
-
方法详细资料
-
sendPacket
public void sendPacket(short type, @NotNull ByteBuffer send) throws IOException从类复制的说明:RemoteConnectionSend a packet to remote- 覆盖:
sendPacket在类中RemoteConnection- 参数:
type- The packet id.send- The data- 抛出:
IOException- IOException.
-
init
public AuthenticationRemoteConnection init() throws IOException
- 抛出:
IOException
-
getBuffer
public ByteBuffer getBuffer()
从类复制的说明:RemoteConnectionGet the data buffer. You need to read the data sent from here.- 覆盖:
getBuffer在类中RemoteConnection- 返回:
- remote data
-
-