public class BsdLocalhostRetriever
extends java.lang.Object
BsdLocalhostRetriever.sockaddr
subclasses without the len member.Modifier and Type | Class and Description |
---|---|
static interface |
BsdLocalhostRetriever.LibC
JNA interface to LibC.
|
static class |
BsdLocalhostRetriever.sockaddr
Corresponds to the C structure sockaddr with some utility functions.
|
static class |
BsdLocalhostRetriever.sockaddr_in
JNA mapping of sockaddr_in.
|
static class |
BsdLocalhostRetriever.sockaddr_in6
JNA mapping of sockaddr_in6
|
Constructor and Description |
---|
BsdLocalhostRetriever() |
Modifier and Type | Method and Description |
---|---|
static java.net.InetAddress |
getLocalSocketAddress(java.net.InetSocketAddress dest)
Gets the local address of a UDP socket that connects to the given
address.
|
public static java.net.InetAddress getLocalSocketAddress(java.net.InetSocketAddress dest) throws java.io.IOException
dest
- The destination to which the socket connects.java.io.IOException
- When the socket cannot be created, connected or
returns an invalid local address.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.