Unsupported library that attempts to punch holes through NAT
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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. }