Protocol.java 316 B

1234567891011121314151617181920212223
  1. package de.tudarmstadt.informatik.hostage.protocol;
  2. import java.util.List;
  3. public interface Protocol<T> {
  4. public static enum TALK_FIRST {
  5. SERVER, CLIENT
  6. };
  7. int getPort();
  8. TALK_FIRST whoTalksFirst();
  9. List<T> processMessage(T message);
  10. boolean isClosed();
  11. boolean isSecure();
  12. Class<T> getType();
  13. }