Unsupported library that attempts to punch holes through NAT
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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