Package tk.doraneko.udp.chat.simple
Class Server
- java.lang.Object
-
- tk.doraneko.udp.chat.simple.Server
-
public class Server extends Object
- Since:
- 12/10/2019
- Author:
- tranphuquy19@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
bufferIn
private byte[]
bufferOut
private DatagramSocket
datagramSocket
-
Constructor Summary
Constructors Constructor Description Server(int port)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
private void
start()
-
-
-
Field Detail
-
datagramSocket
private DatagramSocket datagramSocket
-
bufferIn
private byte[] bufferIn
-
bufferOut
private byte[] bufferOut
-
-
Constructor Detail
-
Server
public Server(int port) throws IOException
- Throws:
IOException
-
-
Method Detail
-
start
private void start() throws IOException
- Throws:
IOException
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-