Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package rs.ac.bg.etf.kdp.sanja.test;
- import rs.ac.bg.etf.kdp.sanja.gui.Get;
- import rs.ac.bg.etf.kdp.sanja.gui.Put;
- import rs.ac.bg.etf.kdp.sanja.interfaces.MessageBox;
- import rs.ac.bg.etf.kdp.sanja.net.RemoteMessageBox;
- public class Test {
- @SuppressWarnings("unused")
- public static void main(String[] args) {
- // String host = args[0];
- // int port = Integer.parseInt(args[1]);
- String host = "localhost";
- int port = 5678;
- // MessageBox<String> buffer = new ListMessageBox<>(2);
- // MessageBox<String> buffer = new LockMessageBox<>(2);
- MessageBox<Object> buffer = new RemoteMessageBox<>(host, port);
- Put put = new Put(buffer);
- Get get = new Get(buffer);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement