Mercurial > hg > Papers > 2015 > sugi-master
diff paper/source/CatchClosedEvent.java @ 4:e59c8e99a5c1
modify chapter4
author | sugi |
---|---|
date | Sun, 04 Jan 2015 04:43:51 +0900 |
parents | |
children | c8f50c3ead48 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paper/source/CatchClosedEvent.java Sun Jan 04 04:43:51 2015 +0900 @@ -0,0 +1,12 @@ +import alice.codesegment.CloseEventCodeSegment; +import alice.daemon.ConnectionInfo; + +public class CatchClosedEvent extends CloseEventCodeSegment{ + + @Override + public void run() { + ConnectionInfo e = getConnectionInfo(); + System.out.println("IPAddr "+ e.addr); + System.out.println("port "+ e.port); + } +}