Package serverLogic
                Class UdpServerConnection
java.lang.Object
                
            serverLogic.UdpServerConnection
            - All Implemented Interfaces:
 ServerConnection
- Direct Known Subclasses:
 UdpConnectionBlockDecorator
- 
                        
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SocketAddressstatic final intprotected final DatagramChannel - 
                        
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUdpServerConnection(DatagramChannel channel, SocketAddress address)  - 
                        
Method Summary
Modifier and TypeMethodDescriptionvoidMethod for close a connectionvoidMethod for open a connection.sendData(byte[] bytesToSend) Method for send data to a server 
- 
                        
Field Details
- 
                                    
BUFFER_SIZE
public static final int BUFFER_SIZE- See Also:
 
 - 
                                    
channel
 - 
                                    
address
 
 - 
                                    
 - 
                        
Constructor Details
- 
                                    
UdpServerConnection
 
 - 
                                    
 - 
                        
Method Details
- 
                                    
openConnection
Method for open a connection.- Specified by:
 openConnectionin interfaceServerConnection- Throws:
 IOException- if I/O occurs
 - 
                                    
closeConnection
Method for close a connection- Specified by:
 closeConnectionin interfaceServerConnection- Throws:
 IOException- if I/O occurs
 - 
                                    
sendData
Description copied from interface:ServerConnectionMethod for send data to a server- Specified by:
 sendDatain interfaceServerConnection- Parameters:
 bytesToSend- bytes to send- Returns:
 - Response from a server
 - Throws:
 IOException- if I/O occurs
 
 -