update sample code
This commit is contained in:
parent
d235d02b70
commit
f79a2b69e6
@ -5,22 +5,24 @@ import com.sunyard.sge.database.SydApi4Database;
|
|||||||
|
|
||||||
public class Sample
|
public class Sample
|
||||||
{
|
{
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
SydApi4Database.SYD_SetLogConfig("./sydapi/log", 1);
|
SydApi4Database.SYD_SetLogConfig("./sydapi/log", 1);
|
||||||
SydApi api = new SydApi4Database();
|
SydApi api = new SydApi4Database();
|
||||||
api.SYD_Connect_Ex(
|
try {
|
||||||
|
api = api.SYD_Connect_Ex(
|
||||||
new String[]{ "192.168.0.100" },
|
new String[]{ "192.168.0.100" },
|
||||||
new int[]{ 8889 },
|
new int[]{ 8889 },
|
||||||
3,
|
3,
|
||||||
15
|
15
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
api.SYD_Disconnect_Ex();
|
|
||||||
|
|
||||||
|
|
||||||
|
} finally {
|
||||||
|
api.SYD_Disconnect_Ex();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user