提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.demo.frame.vto; |
H |
2 |
|
|
3 |
import com.sun.jna.Pointer; |
|
4 |
|
|
5 |
import com.netsdk.lib.NetSDKLib.LLong; |
|
6 |
import com.netsdk.lib.NetSDKLib.fDisConnect; |
|
7 |
|
|
8 |
/** |
|
9 |
* 设备断线回调函数,空实现。 建议回调函数使用单例模式 |
|
10 |
* |
|
11 |
* @author 47081 |
|
12 |
* |
|
13 |
*/ |
|
14 |
public class DefaultDisConnect implements fDisConnect { |
|
15 |
private static DefaultDisConnect INSTANCE; |
|
16 |
|
|
17 |
private DefaultDisConnect() { |
|
18 |
// TODO Auto-generated constructor stub |
|
19 |
} |
|
20 |
|
|
21 |
public static DefaultDisConnect GetInstance() { |
|
22 |
if (INSTANCE == null) { |
|
23 |
INSTANCE = new DefaultDisConnect(); |
|
24 |
} |
|
25 |
return INSTANCE; |
|
26 |
} |
|
27 |
|
|
28 |
@Override |
|
29 |
public void invoke(LLong lLoginID, String pchDVRIP, int nDVRPort, Pointer dwUser) { |
|
30 |
// TODO Auto-generated method stub |
|
31 |
System.out.printf("Device[%s] Port[%d] DisConnectCallBack!\n", pchDVRIP, nDVRPort); |
|
32 |
|
|
33 |
} |
|
34 |
} |