Package tk.doraneko.udp.chat.simple
Class Client
- java.lang.Object
-
- tk.doraneko.udp.chat.simple.Client
-
public class Client extends Object
- Since:
- 12/10/2019
- Author:
- tranphuquy19@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description private BufferedReader
bufferedReader
private byte[]
bufferIn
private byte[]
bufferOut
private DatagramSocket
datagramSocket
private String
host
private InputStreamReader
inputStreamReader
private int
port
private InetAddress
serverAddress
-
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
-
serverAddress
private InetAddress serverAddress
-
inputStreamReader
private InputStreamReader inputStreamReader
-
bufferedReader
private BufferedReader bufferedReader
-
host
private String host
-
port
private int port
-
bufferIn
private byte[] bufferIn
-
bufferOut
private byte[] bufferOut
-
-
Constructor Detail
-
Client
public Client(String host, 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
-
-