Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.netaddr
Class Win32LocalhostRetriever

java.lang.Object
  extended by net.java.sip.communicator.impl.netaddr.Win32LocalhostRetriever

public class Win32LocalhostRetriever
extends Object

Class to retrieve local address to use for a specific destination. This class works only on Microsoft Windows system.

Author:
Sebastien Vincent

Constructor Summary
Win32LocalhostRetriever()
          Constructor.
 
Method Summary
static byte[] getSourceForDestination(byte[] dst)
          Native method to retrieve source address to use for a specific destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Win32LocalhostRetriever

public Win32LocalhostRetriever()
Constructor.

Method Detail

getSourceForDestination

public static byte[] getSourceForDestination(byte[] dst)
Native method to retrieve source address to use for a specific destination.

Parameters:
dst - destination address
Returns:
source address or null if error
Note:
This function is only implemented for Microsoft Windows (>= XP SP1). Do not try to call it from another OS.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.