5. Predavanje - VTS NS
5. Predavanje - VTS NS
5. Predavanje - VTS NS
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
PriključnicePrimer (Java): klijentimport java.net.*;import java.io.*;public class DateClient {public static void main (String[] args) {try {Socket sock = new Socket(“147.91.1.41”,6013);InputStream in = sock.getInputStream();BufferedReader bin = newBufferedReader(new InputStreamReader(in));String line;while ((line=bin.readLine()) != null)System.out.println(line);sock.close();}catch (IOException ioe) {System.err.println(ioe);}}}30/285