mpush-client-java icon indicating copy to clipboard operation
mpush-client-java copied to clipboard

测试类,如何指定端口,我看现在的哪个测试类,指定端口没有这块逻辑

Open hotsmile opened this issue 6 years ago • 0 comments

public static void main(String[] args) throws Exception {
    int count = 1;
    String serverHost = "127.0.0.1";
    int sleep = 1000;

    if (args != null && args.length > 0) {
        count = Integer.parseInt(args[0]);
        if (args.length > 1) {
            serverHost = args[1];
        }
        if (args.length > 2) {
            sleep = Integer.parseInt(args[1]);
        }

这块取的参数都是一个呀?

hotsmile avatar Apr 12 '19 06:04 hotsmile