SHARE
TWEET

MAIN

a guest Jan 24th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package rs.ac.bg.etf.kdp.sanja.test;
  2.  
  3. import rs.ac.bg.etf.kdp.sanja.gui.Get;
  4. import rs.ac.bg.etf.kdp.sanja.gui.Put;
  5. import rs.ac.bg.etf.kdp.sanja.interfaces.MessageBox;
  6. import rs.ac.bg.etf.kdp.sanja.net.RemoteMessageBox;
  7.  
  8. public class Test {
  9.  
  10.     @SuppressWarnings("unused")
  11.     public static void main(String[] args) {
  12.         // String host = args[0];
  13.         // int port = Integer.parseInt(args[1]);
  14.         String host = "localhost";
  15.         int port = 5678;
  16.         // MessageBox<String> buffer = new ListMessageBox<>(2);
  17.         // MessageBox<String> buffer = new LockMessageBox<>(2);
  18.         MessageBox<Object> buffer = new RemoteMessageBox<>(host, port);
  19.         Put put = new Put(buffer);
  20.         Get get = new Get(buffer);
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top