Package tk.doraneko.udp.sendfile.simple
Class Server
- java.lang.Object
 - 
- tk.doraneko.udp.sendfile.simple.Server
 
 
- 
public class Server extends Object
- Since:
 - 18/10/2019
 - Author:
 - tranphuquy19@gmail.com
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private DatagramSocketdatagramSocketprivate static intPIECES_OFF_FILE_SIZEprivate intport 
- 
Constructor Summary
Constructors Constructor Description Server(int port) 
 - 
 
- 
- 
Field Detail
- 
PIECES_OFF_FILE_SIZE
private static int PIECES_OFF_FILE_SIZE
 
- 
datagramSocket
private DatagramSocket datagramSocket
 
- 
port
private int port
 
 - 
 
- 
Constructor Detail
- 
Server
public Server(int port) throws IOException- Throws:
 IOException
 
 - 
 
- 
Method Detail
- 
open
private void open() throws IOException- Throws:
 IOException
 
- 
start
private void start()
 
 - 
 
 -