Mercurial > hg > Database > Alice
view src/main/java/alice/daemon/ConnectionInfo.java @ 473:041ec04d4d45 dispose
refactor
author | sugi |
---|---|
date | Sun, 30 Nov 2014 00:00:48 +0900 |
parents | 780ae843cdac |
children | cf345b10a21a |
line wrap: on
line source
package alice.daemon; import java.net.Socket; import org.msgpack.annotation.Message; @Message public class ConnectionInfo { public String nodeName; public String hostname; public String addr; public int port; public ConnectionInfo(String name, Socket socket){ this.nodeName = name; this.hostname = socket.getInetAddress().getHostName(); this.addr = socket.getInetAddress().getHostAddress(); this.port = socket.getPort(); } }