KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > transport > channel > GetChannelResponse


1
2 package transport.channel;
3 import java.nio.channels.SocketChannel JavaDoc;
4
5 /**
6  *
7  */

8 public class GetChannelResponse
9 {
10     private int channelID;
11     private SocketChannel JavaDoc channel;
12     public GetChannelResponse(int id, SocketChannel JavaDoc ch)
13     {
14         super();
15         channelID = id;
16         channel = ch;
17     }
18     public int getID()
19     {
20         return channelID;
21     }
22     public SocketChannel JavaDoc getChannel()
23     {
24         return channel;
25     }
26 }
27
Popular Tags