Package serverLogic
Interface ServerConnection
- All Known Implementing Classes:
DatagramServerConnection
,UdpConnectionBlockDecorator
,UdpServerConnection
public interface ServerConnection
Provides abstract server connection. Use factory methods to create the connection.
- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method for close a connectionvoid
Method for open a connection.sendData
(byte[] bytesToSend) Method for send data to a server
-
Method Details
-
openConnection
Method for open a connection.- Throws:
IOException
- if I/O occurs
-
closeConnection
Method for close a connection- Throws:
IOException
- if I/O occurs
-
sendData
Method for send data to a server- Parameters:
bytesToSend
- bytes to send- Returns:
- Response from a server
- Throws:
IOException
- if I/O occurs
-