Commit 17363250 authored by jehan's avatar jehan

add stun client

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@89 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 3162faaa
......@@ -22,5 +22,33 @@ package org.linphone.p2pproxy.core.stun;
import java.net.InetSocketAddress;
public class AddressInfo {
InetSocketAddress mPublicAddress,mPrivateAddress;
enum Mode {
open
, blockedUDP
, fullCone
, restrictedCone
, portRestrictedCone
, symmetric
, symmetricUDPFirewall
, unknown
}
private final InetSocketAddress mPrivateAddress;
private InetSocketAddress mPublicAddress;
private Mode mMode = Mode.unknown;
AddressInfo(InetSocketAddress aPrivateAddress) {
mPrivateAddress = aPrivateAddress;
}
public Mode getType() {
return mMode;
}
public void setMode(Mode aMode) {
mMode = aMode;
}
public InetSocketAddress getPrivateAddress() {
return mPrivateAddress;
}
public InetSocketAddress getPublicAddress() {
return mPrivateAddress;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment