Unsupported library that attempts to punch holes through NAT
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

CommsAgent.java 423B

1234567891011121314151617181920212223242526
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package com.md87.nat;
  6. import java.net.InetAddress;
  7. /**
  8. *
  9. * @author chris
  10. */
  11. public interface CommsAgent {
  12. void sendNATType(final NatType type);
  13. NatType readNATType();
  14. void sendAddress(final InetAddress address);
  15. void sendPort(final int port);
  16. InetAddress readAddress();
  17. int readPort();
  18. }