Interface AFSocketAddress.AFSocketAddressConstructor<T extends AFSocketAddress>

Type Parameters:
T - The actual subclass.
Enclosing class:
AFSocketAddress
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface protected static interface AFSocketAddress.AFSocketAddressConstructor<T extends AFSocketAddress>
A reference to the constructor of an AFSocketAddress subclass.
Author:
Christian Kohlschütter
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull T
    newAFSocketAddress(int port, byte[] socketAddress, ByteBuffer nativeAddress)
    Constructs a new AFSocketAddress instance.
  • Method Details

    • newAFSocketAddress

      @NonNull T newAFSocketAddress(int port, byte[] socketAddress, ByteBuffer nativeAddress) throws SocketException
      Constructs a new AFSocketAddress instance.
      Parameters:
      port - The port.
      socketAddress - The socket address in junixsocket-specific byte-array representation.
      nativeAddress - The socket address in system-native representation.
      Returns:
      The instance.
      Throws:
      SocketException - on error.