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 DatagramSocket
datagramSocket
private static int
PIECES_OFF_FILE_SIZE
private int
port
-
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()
-
-