comparison src/alice/topology/node/IncomingAbstractHostName.java @ 32:2bfb796b0fa1

change method to create DataSegmentReceiver
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Tue, 17 Jan 2012 20:49:26 +0900
parents 98ab26e09a98
children 20c67f673224
comparison
equal deleted inserted replaced
31:5c704b9a9a87 32:2bfb796b0fa1
4 import alice.datasegment.CommandType; 4 import alice.datasegment.CommandType;
5 import alice.datasegment.DataSegmentReceiver; 5 import alice.datasegment.DataSegmentReceiver;
6 6
7 public class IncomingAbstractHostName extends CodeSegment { 7 public class IncomingAbstractHostName extends CodeSegment {
8 8
9 public DataSegmentReceiver absName = new DataSegmentReceiver(ids, CommandType.PEEK); 9 public DataSegmentReceiver absName = ids.createReceiver(CommandType.PEEK);
10 10
11 @Override 11 @Override
12 public void run() { 12 public void run() {
13 String absName = this.absName.val.asRawValue().getString(); 13 String absName = this.absName.val.asRawValue().getString();
14 IncomingConnectionInfo cs = new IncomingConnectionInfo(absName, 0); 14 IncomingConnectionInfo cs = new IncomingConnectionInfo(absName, 0);