Advertisement
SkolaRajakAndroid

Klijent-Server - KLIJENT-Mejn

Sep 21st, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. //package rajak.rs.android.kurs.tcp;
  2.  
  3. /**
  4.  *
  5.  * @author snovak
  6.  *
  7.  */
  8. public class Main {
  9.  
  10.     /**
  11.      * Denial Of Service NAPAD! Hakerske vestine!
  12.      */
  13.     public static final int BR_KLIJENATA = 5;
  14.    
  15.     /**
  16.      *
  17.      * @param args
  18.      */
  19.     public static void main(String[] args) {
  20.         for(int i = 0; i < BR_KLIJENATA; i++) {
  21.             Klijent k = new Klijent();
  22.             Thread t = new Thread (k);
  23.             t.start(); // startuj klijenta na posebnom threadu
  24.         }
  25.  
  26.     }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement