- 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, current_packet, handlers, socket
-
-
构造器概要
构造器 构造器 说明 AuthenticationRemoteConnection(SocketChannel socket)
AuthenticationRemoteConnection(SocketChannel socket, @NotNull KeyPair rsa)
-
方法概要
修饰符和类型 方法 说明 ByteBuffer
getBuffer()
Get the data buffer.AuthenticationRemoteConnection
init()
void
post()
void
sendPacket(short type, @NotNull ByteBuffer send)
Send a packet to remote-
从类继承的方法 cn.mcres.karlatemp.mxlib.remote.RemoteConnection
badPacket, disconnect, disconnect, getHandlerList, getStatus, onSelected, sendPacket, sendPacket
-
-
-
-
字段详细资料
-
cipher
public static final Cipher cipher
-
-
构造器详细资料
-
AuthenticationRemoteConnection
public AuthenticationRemoteConnection(SocketChannel socket)
-
AuthenticationRemoteConnection
public AuthenticationRemoteConnection(SocketChannel socket, @NotNull @NotNull KeyPair rsa)
-
-
方法详细资料
-
sendPacket
public void sendPacket(short type, @NotNull @NotNull ByteBuffer send) throws IOException
从类复制的说明:RemoteConnection
Send 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()
从类复制的说明:RemoteConnection
Get the data buffer. You need to read the data sent from here.- 覆盖:
getBuffer
在类中RemoteConnection
- 返回:
- remote data
-
-