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 BufferedReaderbufferedReaderprivate byte[]bufferInprivate byte[]bufferOutprivate DatagramSocketdatagramSocketprivate Stringhostprivate InputStreamReaderinputStreamReaderprivate intportprivate InetAddressserverAddress 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)private voidstart() 
 - 
 
- 
- 
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
 
 - 
 
 -