Example: Java client using UDP
{"Image DocumentName": "Example: Java client using UDP", "Image ImageDescription": "import java.io. ; import java.net. ; class UDPClient { public static void main(String args[]) throws Exception { //Create input stream BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in)); //Create client socket DatagramSocket clientSocket = new DatagramSocket(); //Translate hostname to IP address using DNS InetAddress IPAddress = InetAddress.getByName( localhost ); byte[] sendData = new byte[1024]; byte[] receiveData = new byte[1024]; String sentence = inFromUser.readLine(); sendData = sentence.getBytes();", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}