linphone-Tunnelconfig.java文件分析
来源:互联网 发布:淘宝摄影灯推荐 编辑:程序博客网 时间:2024/06/05 16:28
说明
此类的主要作用主要是配置Host, port等。
功能
- 设置获取Host
- 设置获取Port
- 设置获取RemoteUdpMirrorPort
- 获取设置maximum amount of time
UML类图
TunnelConfig.java
package org.linphone.core;public class TunnelConfigImpl implements TunnelConfig{ long mNativePtr; protected TunnelConfigImpl(long nativePtr){ mNativePtr = nativePtr; } // Get the hostname of the tunnel server private native String getHost(long nativePtr); @Override public String getHost() { return getHost(mNativePtr); } //Set the hostname (or iiip address) of the tunnel server. private native void setHost(long nativePtr, String host); @Override public void setHost(String host) { setHost(mNativePtr, host); } // Get the port where to connect. private native int getPort(long nativePtr); @Override public int getPort() { return getPort(mNativePtr); } // Set the port where to connect to teh tunnel server. // When not set, the default value is used (443). private native void setPort(long nativePtr, int port); @Override public void setPort(int port) { setPort(mNativePtr, port); } // Get the remote udp mirror port, which is used to check udp connectivity of the network private native int getRemoteUdpMirrorPort(long nativePtr); @Override public int getRemoteUdpMirrorPort() { return getRemoteUdpMirrorPort(mNativePtr); } // Set the udp mirror port, which is used to check udp connectivity private native void setRemoteUdpMirrorPort(long nativePtr, int remoteUdpMirrorPort); @Override public void setRemoteUdpMirrorPort(int remoteUdpMirrorPort) { setRemoteUdpMirrorPort(mNativePtr, remoteUdpMirrorPort); } // Get the maximum amount of time for waiting for UDP packets to come back during the UDP connectivity check, in milliseconds. private native int getDelay(long nativePtr); @Override public int getDelay() { return getDelay(mNativePtr); } // Set the maximum amount of time for waiting for UDP packets to come back during the UDP connectivity check, in milliseconds. private native void setDelay(long nativePtr, int delay); @Override public void setDelay(int delay) { setDelay(mNativePtr, delay); } private native void enableSip(long nativePtr, boolean enabled); private native void destroy(long nativePtr); protected void finalize() throws Throwable { if (mNativePtr!=0) destroy(mNativePtr); }}
0 0
- linphone-Tunnelconfig.java文件分析
- linphone-LinphoneManager.java文件分析
- linphone-LinphoneCoreFactory.java文件分析
- linphone-LinphoneAddress.java文件分析
- linphone-LpConfig.java文件分析
- linphone-LinponeCore.java文件分析
- linphone-LinphoneContent.java文件分析
- linphone-LinphoneInfoMessage.java文件分析
- linphone-PresenceModel.java文件分析
- linphone-PresenceActivity.java文件分析
- linphone-PresenceService.java文件分析
- linphone-PresencePerson.java文件分析
- linphone-PresenceNote.java文件分析
- linphone-KeepAliveReceiver.java文件分析
- linphone-BootReceiver.java文件分析
- linphone-NetworkManger.java文件分析
- linphone-LinphonePreferences.java文件分析
- linphone-LinphoneProxyConfig.java文件分析
- c#之线程
- 在实际例子中学习正则表达式
- 对于异常的捕捉
- poj 1190 生日蛋糕
- 默慈金数
- linphone-Tunnelconfig.java文件分析
- Java开发中的23种设计模式详解(转)
- 折半算法
- java中,为什么有些类不需要导入?
- 解决html 展示一长串数字不能自动换行
- 使用 CXF 开发 SOAP 服务
- 从Qt4 迁移到Qt5 winEvent代替为nativeEvent
- 使用 Math 类操作数据
- c primer plus第16章总结:C预处理器和C库