lyf666 2017-04-16 21:07:32 +08:00
parent e6f4bf340c
commit 1ff9b6f360
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.cloudowr</groupId> <groupId>cn.cloudowr</groupId>
<artifactId>sdk</artifactId> <artifactId>sdk</artifactId>
<version>1.4.15</version> <version>1.4.16</version>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

View File

@ -30,7 +30,10 @@ public class Logger {
private static ClientChannelContext<Object, Message, Object> clientChannelContext; private static ClientChannelContext<Object, Message, Object> clientChannelContext;
public static void initLogger() throws Exception { public static void initLogger() throws Exception {
String serverIp = "127.0.0.1"; initLogger("127.0.0.1");
}
public static void initLogger(String serverHost) throws Exception {
String serverIp = serverHost;
int serverPort = Const.PORT; int serverPort = Const.PORT;
serverNode = new Node(serverIp, serverPort); serverNode = new Node(serverIp, serverPort);
aioClientHandler = new BaseClientAioHandler(); aioClientHandler = new BaseClientAioHandler();