Mercurial > hg > Members > tatsuki > Alice
view src/alice/topology/HostMessage.java @ 212:b5daccf36104 working
add Receiver state pattern
author | one |
---|---|
date | Wed, 27 Mar 2013 17:30:52 +0900 |
parents | 98ab26e09a98 |
children | c0712e0b0a24 |
line wrap: on
line source
package alice.topology; import org.msgpack.annotation.Message; import org.msgpack.annotation.Optional; @Message public class HostMessage { public String name; public int port; @Optional public String connectionName; @Optional public String reverseName; public HostMessage() { } public HostMessage(String name, int port) { this.name = name; this.port = port; } public HostMessage(String name, int port, String connectionName, String reverseName) { this.name = name; this.port = port; this.connectionName = connectionName; this.reverseName = reverseName; } }