Mercurial > hg > Members > tatsuki > Alice
changeset 367:514af34ca062 multicast
add method for creating MulticastChannel
author | sugi |
---|---|
date | Sat, 17 May 2014 21:36:35 +0900 |
parents | abc54fa0c81b |
children | f38cafa457c9 |
files | src/main/java/alice/datasegment/DataSegment.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/alice/datasegment/DataSegment.java Sat May 17 21:34:01 2014 +0900 +++ b/src/main/java/alice/datasegment/DataSegment.java Sat May 17 21:36:35 2014 +0900 @@ -33,6 +33,12 @@ return manager; } + public static MulticastDataSegmentManager connectMulticast(String connectionKey ,String MCSTADDR, int port, String nis){ + MulticastDataSegmentManager manager = new MulticastDataSegmentManager(connectionKey ,MCSTADDR, port, nis); + register("multicast", manager); + return manager; + } + public static void setAccept(String key, IncomingTcpConnection incoming) { dataSegment.acceptHash.put(key, incoming); }