Package net.ME1312.SubData.Server
Class SubDataClient
java.lang.Object
net.ME1312.SubData.Server.DataClient
net.ME1312.SubData.Server.SubDataClient
SubData Client Class
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ME1312.SubData.Server.DataClient
DataClient.Events -
Field Summary
Fields inherited from class net.ME1312.SubData.Server.DataClient
on -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the connectionGet Remote AddressGets the response from the Authorization ServiceintGet SubData's Block SizeGets the Linked HandlerGet the Server this Client belongs toGet the underlying Client SocketbooleanisClosed()Get if the connection has been closedvoidnewChannel(Consumer<DataClient> client) Deprecated.voidopenChannel(Consumer<SubDataClient> client) Open an Async Data SubChannelvoidping(Consumer<PingResponse> response) Ping the Clientvoidreconnect(SubDataClient client) Reconnect the data stream using another ClientvoidsendMessage(MessageOut... messages) Send a message to the ClientvoidsendPacket(PacketOut... packets) Send a packet to the ClientvoidsetBlockSize(Integer size) Set SubData's Block SizevoidsetHandler(ClientHandler obj) Sets the Handler (should only be called by Handlers themselves)voidtempBlockSize(Integer size) Set SubData's Block Size for the current packetMethods inherited from class net.ME1312.SubData.Server.DataClient
getID, waitFor
-
Method Details
-
sendPacket
Send a packet to the Client- Parameters:
packets- Packets to send
-
sendMessage
Description copied from class:DataClientSend a message to the Client- Specified by:
sendMessagein classDataClient- Parameters:
messages- Messages to send
-
ping
Description copied from class:DataClientPing the Client- Specified by:
pingin classDataClient- Parameters:
response- Ping Response
-
getSocket
Get the underlying Client Socket- Returns:
- Client Socket
-
getServer
Get the Server this Client belongs to- Specified by:
getServerin classDataClient- Returns:
- SubData Server
-
getAddress
Description copied from class:DataClientGet Remote Address- Specified by:
getAddressin classDataClient- Returns:
- Address
-
getBlockSize
public int getBlockSize()Get SubData's Block Size- Specified by:
getBlockSizein classDataClient- Returns:
- Block Size
-
setBlockSize
Set SubData's Block Size- Parameters:
size- Block Size (null for super)
-
tempBlockSize
Set SubData's Block Size for the current packet- Specified by:
tempBlockSizein classDataClient- Parameters:
size- Block Size (null for default)
-
getAuthResponse
Description copied from class:DataClientGets the response from the Authorization Service- Specified by:
getAuthResponsein classDataClient- Returns:
- Authorization Service Response
-
getHandler
Description copied from class:DataClientGets the Linked Handler- Specified by:
getHandlerin classDataClient- Returns:
- Handler
-
setHandler
Sets the Handler (should only be called by Handlers themselves)- Parameters:
obj- Handler- See Also:
-
newChannel
Deprecated.Description copied from class:DataClientOpen an Async Data SubChannel- Specified by:
newChannelin classDataClient
-
openChannel
Open an Async Data SubChannel -
reconnect
Reconnect the data stream using another Client- Parameters:
client- Client
-
close
public void close()Description copied from class:DataClientCloses the connection- Specified by:
closein classDataClient
-
isClosed
public boolean isClosed()Description copied from class:DataClientGet if the connection has been closed- Specified by:
isClosedin classDataClient- Returns:
- Closed Status
-