Mercurial > hg > Database > Alice
view src/main/java/alice/daemon/ConnectionInfo.java @ 655:1c93e82e05c6 default tip
fix timestamp
author | suruga |
---|---|
date | Sat, 17 Feb 2018 00:33:00 +0900 |
parents | 1cf2697d51a6 |
children |
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() {/*messagePack need no arguments constructor*/} public ConnectionInfo(String name, Socket socket){ this.nodeName = name; this.hostname = socket.getInetAddress().getHostAddress(); this.addr = socket.getInetAddress().getHostAddress(); this.port = socket.getPort(); } }